载入中...
搜索中...
未找到
RpgState.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/StateValue.h"
6
7#include <string>
8
9namespace eve::rpg {
10
19EVENGINE_API_PLATFORM bool captureRpgState(StateValue& out);
21EVENGINE_API_PLATFORM bool restoreRpgState(const StateValue& in, std::string* err = nullptr);
24
25} // namespace eve::rpg
#define EVENGINE_API_PLATFORM
Definition Export.h:107
RPG 模块的基础实体:把属性 / 状态 / 技能三张表挂到一个 ECS 实体上。
EVENGINE_API_PLATFORM bool resetRpgState()
Resets rpg state.
EVENGINE_API_PLATFORM bool captureRpgState(StateValue &out)
Compatibility facade for RPGActor skill-state serialization during state hot reload.
EVENGINE_API_PLATFORM bool restoreRpgState(const StateValue &in, std::string *err=nullptr)
Restore rpg state.