FEngineModularRegistry::FStateFragment
Save/travel-carried world state as data: a system that owns durable gameplay state (quest log, faction standings) registers a fragment; SaveGame writes every fragment with state into the save root and FTravelManager carries them across a level change — neither names a concrete system type, so the owner can live in a plugin. Name is the MDF node type (e.g. "QuestState") and must stay stable: it is the on-disk save format. Plain function pointers for the same ABI reason as FModularSceneSystem.
- Module
- Game
- Header
#include "Game/EngineModularRegistry.h"- Namespace
Mowo
Version is stamped on the fragment's node as schema_version. A node from an older build goes through Migrate (node, its version) before Deserialize; one from a newer build is skipped and logged, because the reader would misread a layout it has never seen. Absent on disk = 1.
Properties
| Type | Name | Description |
|---|---|---|
std::string | Name | |
uint32_t | Version | Default 1. |
Public functions
Function details
bool
bool (*HasState)(World&) = nullptrvoid
void (*Serialize)(World&, MdfNode&) = nullptrvoid
void (*Deserialize)(World&, const MdfNode&) = nullptrvoid
void (*Migrate)(MdfNode&, uint32_t fromVersion) = nullptr