Initial Agrarian Unreal project
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// Copyright Pacificao. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Subsystems/GameInstanceSubsystem.h"
|
||||
#include "AgrarianPersistenceSubsystem.generated.h"
|
||||
|
||||
class UAgrarianSaveGame;
|
||||
|
||||
UCLASS()
|
||||
class UAgrarianPersistenceSubsystem : public UGameInstanceSubsystem
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Persistence")
|
||||
FString DefaultSlotName = TEXT("AgrarianMVP");
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Persistence")
|
||||
int32 UserIndex = 0;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Agrarian|Persistence")
|
||||
UAgrarianSaveGame* CreateEmptySave() const;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Agrarian|Persistence")
|
||||
UAgrarianSaveGame* LoadOrCreateSave() const;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Agrarian|Persistence")
|
||||
bool WriteSave(UAgrarianSaveGame* SaveGame) const;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Agrarian|Persistence")
|
||||
bool DoesSaveExist() const;
|
||||
};
|
||||
Reference in New Issue
Block a user