Create NakatomiSaveGame class
This commit is contained in:
parent
e475a6a365
commit
a3120e27f3
|
@ -3,6 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Weapon.h"
|
||||
#include "GameFramework/SaveGame.h"
|
||||
#include "NakatomiSaveGame.generated.h"
|
||||
|
||||
|
@ -13,5 +14,26 @@ UCLASS()
|
|||
class NAKATOMI_API UNakatomiSaveGame : public USaveGame
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UPROPERTY(VisibleAnywhere, Category = Basic)
|
||||
FString PlayerName = "Player Name";
|
||||
|
||||
UPROPERTY(VisibleAnywhere, Category = Level)
|
||||
FString LevelName = "Level1";
|
||||
|
||||
UPROPERTY(VisibleAnywhere, Category = Player)
|
||||
float PlayerHealth = 100.0f;
|
||||
|
||||
UPROPERTY(VisibleAnywhere, Category = Player)
|
||||
TArray<AWeapon*> WeaponInventory;
|
||||
|
||||
UPROPERTY(VisibleAnywhere, Category = Player)
|
||||
int CurrentInventorySlot = 0;
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void ResetPlayerValuesToDefault()
|
||||
{
|
||||
PlayerHealth = 100.0f;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue