Overview of Ludeo SDK State Management
The Ludeo SDK uses a context stack-based approach to track and restore gameplay state between Creator Flow (capture) and Player Flow (playback). Key principles include:
- Context Stack: Hierarchical organization (Objects → Components → Attributes).
- Delta Tracking: Only state changes are tracked in Creator Flow.
- Object-Oriented Structure: State matches the game's object structure.
- Efficient Serialization: Optimized for high-frequency gameplay calls.
Main mechanisms provided by the Unreal plugin:
FLudeoRoomWriter: Tracks gameplay state and player actions (available when a room is open).FLudeoReadableObject: Restores gameplay state (available after callingFLudeoSession::GetLudeo()).- Optional Reference Managers:
ULudeoSaveGameManager(capture) andULudeoLoadGameManager(playback) can save/restore the world usingUPROPERTY(SaveGame)withFLudeoSaveGameSpecificationandFLudeoLoadGameSpecification.