One authoritative domain participating in a game save. @lifetime The participant and its live domain owner must outlive the GameSaveSession. @thread All methods run on the owning simulation thread at a paused save/load boundary. @reentrancy No scripts or unknown callbacks during capture or prepare. 更多...
#include <GameSaveSession.h>
Public 成员函数 | |
| virtual | ~IGameSaveParticipant ()=default |
| virtual std::string_view | saveKey () const noexcept=0 |
| Stable unique participant key within the game-save schema. | |
| virtual Result< Value > | capture () const =0 |
| Capture an independent owning snapshot of this domain. | |
| virtual Result< std::unique_ptr< IPreparedGameRestore > > | prepare (const Value &state)=0 |
| Validate and prepare a no-fail commit without changing live state. | |
详细描述
One authoritative domain participating in a game save. @lifetime The participant and its live domain owner must outlive the GameSaveSession. @thread All methods run on the owning simulation thread at a paused save/load boundary. @reentrancy No scripts or unknown callbacks during capture or prepare.
在文件 GameSaveSession.h 第 32 行定义.
构造及析构函数说明
◆ ~IGameSaveParticipant()
|
virtualdefault |
成员函数说明
◆ capture()
Capture an independent owning snapshot of this domain.
在 eve::rpg::RPGGameSaveParticipant , 以及 eve::tactics::TacticsGameSaveParticipant 内被实现.
◆ prepare()
|
pure virtual |
Validate and prepare a no-fail commit without changing live state.
◆ saveKey()
|
pure virtualnoexcept |
Stable unique participant key within the game-save schema.
在 eve::rpg::RPGGameSaveParticipant , 以及 eve::tactics::TacticsGameSaveParticipant 内被实现.
被这些函数引用 eve::GameSaveSession::add().
该类的文档由以下文件生成:
- src/engine/common/GameSaveSession.h