Orrery Terrain · OrreryTerrain module · struct
FOrreryTerrainSaveRef
A terrain save beside a game's save slot, as the game keeps it in its own USaveGame: the file the terrain wrote and the hashes that pair it with this game save.
Declaration
USTRUCT(BlueprintType, meta=(="Terrain Save Reference"))
struct FOrreryTerrainSaveRefThe graph as text
- Make Terrain Save Reference (structure)
- In Slot Name (String): empty
- In User Index (Integer): 0
- In File Name (String): empty
- In File Hash (Integer64): 0
- In State Hash (Integer64): 0
- In Natural Hash (Integer64): 0
- In Save Version (Integer): 0
- In Bytes (Integer64): 0
- Out Orrery Terrain Save Ref (OrreryTerrainSaveRef): not connected
- Break Terrain Save Reference (structure)
- In Orrery Terrain Save Ref (OrreryTerrainSaveRef): not connected
- Out Slot Name (String): not connected
- Out User Index (Integer): not connected
- Out File Name (String): not connected
- Out File Hash (Integer64): not connected
- Out State Hash (Integer64): not connected
- Out Natural Hash (Integer64): not connected
- Out Save Version (Integer): not connected
- Out Bytes (Integer64): not connected
- Header
#include "TerrainBlueprintTypes.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Blueprint
- “Terrain Save Reference”, a Blueprint type
Description
Pass it to LoadTerrainFromSlot; a different or damaged file is refused.
Each save of a slot writes a new file (<Slot>.<n>.tsterrain) and deletes the older ones that no loaded terrain pages from, so a reference goes stale once its slot is saved again: keep the newest.
Functions
- IsValid
A reference to a save: it names a file.
Properties
| Name | Type | Default | Meaning |
|---|---|---|---|
SlotBlueprintReadWrite | FString | — | The slot name the game gave. |
UserBlueprintReadWrite | int32 | 0 | The platform user the slot belongs to; 0 on desktop. |
FileBlueprintReadWrite | FString | — | The file's name, without a folder: |
FileBlueprintReadWrite | int64 | 0 | The save's trailer hash (the bits of a uint64): a load refuses a file that does not carry it. |
StateBlueprintReadWrite | int64 | 0 | What GetStateHash answered when the save was made (the bits of a uint64). |
NaturalBlueprintReadWrite | int64 | 0 | The natural ground the save was made over (the bits of a uint64). |
SaveBlueprintReadWrite | int32 | 0 | The save format version written (kTerrainSaveVersion at the time). |
BytesBlueprintReadWrite | int64 | 0 | The file's size, bytes. |
Blueprint
- Break Terrain Save ReferenceMake and Break
- Make Terrain Save ReferenceMake and Break