载入中...
搜索中...
未找到
eve::IGameSaveParticipant类 参考abstract

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>

类 eve::IGameSaveParticipant 继承关系图:
eve::rpg::RPGGameSaveParticipant eve::tactics::TacticsGameSaveParticipant

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()

virtual eve::IGameSaveParticipant::~IGameSaveParticipant ( )
virtualdefault

成员函数说明

◆ capture()

virtual Result< Value > eve::IGameSaveParticipant::capture ( ) const
pure virtual

Capture an independent owning snapshot of this domain.

在 eve::rpg::RPGGameSaveParticipant , 以及 eve::tactics::TacticsGameSaveParticipant 内被实现.

◆ prepare()

virtual Result< std::unique_ptr< IPreparedGameRestore > > eve::IGameSaveParticipant::prepare ( const Value &  state)
pure virtual

Validate and prepare a no-fail commit without changing live state.

在 eve::tactics::TacticsGameSaveParticipant 内被实现.

◆ saveKey()

virtual std::string_view eve::IGameSaveParticipant::saveKey ( ) const
pure virtualnoexcept

Stable unique participant key within the game-save schema.

在 eve::rpg::RPGGameSaveParticipant , 以及 eve::tactics::TacticsGameSaveParticipant 内被实现.

被这些函数引用 eve::GameSaveSession::add().


该类的文档由以下文件生成: