class
FWorldStateJournal
Records are MDF nodes from capture to save to overlay. They were text, so a save wrote each entity's state as a string, a load parsed every string back, and a binary save carried text inside it — about six times the parse cost of the node it already had. A save written that way still loads: its mdf strings are parsed once into nodes.
- Module
- Game
- Header
#include "WorldState/WorldStateJournal.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsPersistenceEnabled | |
bool | IsEmpty | |
void | Clear | |
size_t | TombstoneCount | |
size_t | ModifiedCount | |
size_t | RuntimeSpawnCount | |
void | RecordDestroyed | |
bool | IsDestroyed | |
void | RecordModified | entityNode is the Entity node Scene::SerializeEntityStateToNode writes. |
bool | RecordModifiedFromText | The old text record (an EntityState document), parsed once. |
const MDF::MdfNode* | FindModified | |
void | RecordRuntimeSpawn | |
void | RemoveRuntimeSpawn | |
const MDF::MdfNode* | FindRuntimeSpawn | |
std::vector<EntityID> | RuntimeSpawnsInCell | |
bool | IsSuppressed | |
void | SetSuppressed | |
void | CaptureSector | |
std::vector<EntityID> | CollectRuntimeDespawns | |
void | CaptureForSave | |
void | ApplyEntityOverlays | |
void | ApplyToScene | |
void | SerializeToNode | |
bool | DeserializeFromNode | |
const std::unordered_set<EntityID>& | Tombstones | |
const std::unordered_map<EntityID, MDF::MdfNode>& | Modified | |
const std::unordered_map<EntityID, FRuntimeSpawn>& | RuntimeSpawns | |
size_t | ByteSize | |
FWorldStateJournalSnapshot | Snapshot |
Function details
IsPersistenceEnabled
C++
static bool IsPersistenceEnabled()IsEmpty
C++
bool IsEmpty() constClear
C++
void Clear()TombstoneCount
C++
size_t TombstoneCount() constModifiedCount
C++
size_t ModifiedCount() constRuntimeSpawnCount
C++
size_t RuntimeSpawnCount() constRecordDestroyed
C++
void RecordDestroyed(EntityID id)IsDestroyed
C++
bool IsDestroyed(EntityID id) constRecordModified
C++
void RecordModified(EntityID id, MDF::MdfNode entityNode)entityNode is the Entity node Scene::SerializeEntityStateToNode writes.
RecordModifiedFromText
C++
bool RecordModifiedFromText(EntityID id, const std::string& mdf)The old text record (an EntityState document), parsed once.
FindModified
C++
const MDF::MdfNode* FindModified(EntityID id) constRecordRuntimeSpawn
C++
void RecordRuntimeSpawn(EntityID id, const SectorCoord& cell, MDF::MdfNode tree)RemoveRuntimeSpawn
C++
void RemoveRuntimeSpawn(EntityID id)FindRuntimeSpawn
C++
const MDF::MdfNode* FindRuntimeSpawn(EntityID id) constRuntimeSpawnsInCell
C++
std::vector<EntityID> RuntimeSpawnsInCell(const SectorCoord& cell) constIsSuppressed
C++
bool IsSuppressed() constSetSuppressed
C++
void SetSuppressed(bool suppressed)CaptureSector
C++
void CaptureSector(Scene* scene, const SectorCoord& coord, const std::vector<EntityID>& roots)CollectRuntimeDespawns
C++
std::vector<EntityID> CollectRuntimeDespawns(Scene* scene, const SectorCoord& coord) constCaptureForSave
C++
void CaptureForSave(Scene* scene, bool pruneInvalidRuntimeSpawns)ApplyEntityOverlays
C++
void ApplyEntityOverlays(Scene* scene, EntityID root)ApplyToScene
C++
void ApplyToScene(Scene* scene)SerializeToNode
C++
void SerializeToNode(MDF::MdfNode& out) constDeserializeFromNode
C++
bool DeserializeFromNode(const MDF::MdfNode& node)Tombstones
C++
const std::unordered_set<EntityID>& Tombstones() constModified
C++
const std::unordered_map<EntityID, MDF::MdfNode>& Modified() constRuntimeSpawns
C++
const std::unordered_map<EntityID, FRuntimeSpawn>& RuntimeSpawns() constByteSize
C++
size_t ByteSize() constSnapshot
C++
FWorldStateJournalSnapshot Snapshot(Scene* scene) constGenerated from WorldState/WorldStateJournal.h via game.json · Nov 5, 2026Version 1.0.0