载入中...
搜索中...
未找到
TacticsGameSaveParticipant.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
5
6namespace eve::tactics {
7class Battle;
8
11public:
14 std::string_view saveKey() const noexcept override;
15 [[nodiscard]] Result<Value> capture() const override;
16 [[nodiscard]] Result<std::unique_ptr<IPreparedGameRestore>> prepare(const Value& state) override;
17
18private:
19 Battle* battle_;
20 SnapshotHashProvider hashProvider_;
21};
22
23} // namespace eve::tactics
#define EVENGINE_API_DOMAINS
Definition Export.h:110
Single-transaction composition of domain save participants.
One authoritative domain participating in a game save. @lifetime The participant and its live domain ...
Move-only operation result carrying either a value or Status.
Definition Result.h:176
The canonical owning dynamic value used by data-facing protocols.
Definition Value.h:31
Battle short-root and authoritative owner of board and turn state.
Borrow one authoritative battle as a game-save participant.
std::function< Result< ContentId >(std::string_view canonicalInput)> SnapshotHashProvider
Injected content-digest implementation used by snapshots.
Definition Snapshot.h:36