Reserve container persistence schema

This commit is contained in:
2026-05-18 19:26:30 -07:00
parent f6ed45df31
commit 06666b1dc3
4 changed files with 81 additions and 1 deletions
+24
View File
@@ -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;
};