载入中...
搜索中...
未找到
RpgState.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Result.h"
6#include "common/StateValue.h"
7
8#include <string>
9
10namespace eve::rpg {
11
13[[nodiscard]] EVENGINE_API_PLATFORM Result<Value> captureRpgState();
14
16[[nodiscard]] EVENGINE_API_PLATFORM Result<void> restoreRpgState(const Value& state);
17
19[[nodiscard]] EVENGINE_API_PLATFORM Result<void> resetRpgStateResult();
20
31EVENGINE_API_PLATFORM bool restoreRpgState(const StateValue& in, std::string* err = nullptr);
34
35} // namespace eve::rpg
#define EVENGINE_API_PLATFORM
Definition Export.h:107
Move-only, checked operation results for the common layer.
ScriptStructure out
RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
EVENGINE_API_PLATFORM bool resetRpgState()
Resets rpg state.
EVENGINE_API_PLATFORM Result< Value > captureRpgState()
Capture RPG hot-reload state as an owning canonical value.
EVENGINE_API_PLATFORM Result< void > restoreRpgState(const Value &state)
Validate every actor snapshot before publishing any RPG hot-reload state.
EVENGINE_API_PLATFORM Result< void > resetRpgStateResult()
Cancel all in-flight RPG casts.