Nakatomi/Source/Nakatomi/NakatomiLevelManager.h

47 lines
762 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "NakatomiLevelManager.generated.h"
/**
*
*/
UCLASS()
class NAKATOMI_API UNakatomiLevelManager : public UObject
{
GENERATED_BODY()
UNakatomiLevelManager();
private:
UPROPERTY(EditDefaultsOnly, Meta = (AllowPrivateAccess = "true"))
TSoftObjectPtr<UWorld> NextLevel;
int InitialLevelKeys = 0;
int CollectedLevelKeys = 0;
public:
UFUNCTION()
void LoadNextLevel();
UFUNCTION()
void IncrementInitialLevelKeys();
UFUNCTION()
void IncrementCollectedLevelKeys();
UFUNCTION()
int GetInitialLevelKeysCount();
UFUNCTION()
int GetCollectedLevelKeysCount();
private:
UFUNCTION()
void BeginPlay(UWorld* world);
};