载入中...
搜索中...
未找到
RPGGameSaveParticipant.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
5
6namespace eve::rpg {
7class RPGSaveSession;
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 RPGSaveSession* session_;
20};
21
22} // namespace eve::rpg
#define EVENGINE_API_PLATFORM
Definition Export.h:107
Single-transaction composition of domain save participants.
std::optional< InteractionSession > session
Definition Tactics.cpp:39
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
EVENGINE_API_FOUNDATION public API.
Definition Json.h:39
Borrow an RPGSaveSession as one atomic game-save participant.
A non-owning save boundary for the persistent classic-RPG state owners.
RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。