Reserve container persistence schema
This commit is contained in:
@@ -85,6 +85,27 @@ struct FAgrarianSavedResourceNode
|
||||
bool bRespawnsForMvp = false;
|
||||
};
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct FAgrarianSavedContainer
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
FName ContainerId = NAME_None;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
FName ContainerTypeId = NAME_None;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
FTransform Transform;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
TArray<FAgrarianItemStack> Inventory;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
FString OwnerPlayerId;
|
||||
};
|
||||
|
||||
UCLASS()
|
||||
class UAgrarianSaveGame : public USaveGame
|
||||
{
|
||||
@@ -114,4 +135,7 @@ public:
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
TArray<FAgrarianSavedResourceNode> ResourceNodes;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Agrarian|Save")
|
||||
TArray<FAgrarianSavedContainer> Containers;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user