Skip to main content

FVE_PlayerStats and FVE_StarLeafView

The PlayerStats are the first major branch-off point of the saving types, as the things the player needs to save are wildly different from your average items. FVE_StarLeafView holds the data for if a shop item is unlocked and if it should display the cloud effect for new items.

FVE_PlayerStats adds the following variables:

FString profileDisplayName: The name of the player profile, usually set to the profile name of the platform running the game (Steam). This string is used to determine which directory to look for when saving to and loading from garden files.

int64 coins: The amount of money the player has. This number persists through all gardens, so it's saved here rather than to the garden itself.

int32 level: The player's current level. It's only the level; the amount of experience contributing to a level up is stored in a separate integer.

int32 experience: The amount of experience that the player has so far. This is only the experience; the player's level is stored as a separate integer.

TMap<int32, bool> unlockedAnimals: The animals whose appear requirements have been satisfied. The key is the definition ID of the animal (like the species), and the value is whether or not it has been unlocked. If the definition ID is not in the map, then it is assumed to be locked by default.

image.png