struct

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

TypeNameDescription
std::stringName
uint32_tVersionDefault 1.

Public functions

ReturnsNameDescription
bool
void
void
void

Function details

bool

C++
bool (*HasState)(World&) = nullptr

void

C++
void (*Serialize)(World&, MdfNode&) = nullptr

void

C++
void (*Deserialize)(World&, const MdfNode&) = nullptr

void

C++
void (*Migrate)(MdfNode&, uint32_t fromVersion) = nullptr
Generated from Game/EngineModularRegistry.h via game.json · Nov 5, 2026Version 1.0.0