载入中...
搜索中...
未找到
RpgStateProvider.cpp
浏览该文件的文档.
24 bool restoreState(const StateValue& in, std::string* err) override { return restoreRpgState(in, err); }
const std::string & asString() const
String payload; only valid when kind() == Kind::String.
Definition StateValue.h:60
const StateValue * find(const std::string &key) const
Look up key; nullptr when absent.
Definition StateValue.cpp:74
StateValue & at(size_t index)
Indexed element (bounds-checked); only valid on arrays.
Definition StateValue.h:67
void set(const std::string &key, StateValue v)
Insert or replace key; only valid on objects.
Definition StateValue.cpp:64
Runtime-state serialization for state hot reload.
Definition IStateProvider.h:28
static const std::vector< RPGActor * > & liveActors()
返回所有通过 createActor() 创建、且当前仍存活的 actor。 StatusSystem::update / SkillSystem::update 用它遍历所有 actor 逐帧推进。 ...
Definition RPGActor.cpp:42
static void setCooldownRemaining(RPGActor *actor, const std::string &skillId, float seconds)
Sets the cooldown remaining.
Definition SkillSystem.cpp:90
EVENGINE_API_PLATFORM bool captureRpgState(StateValue &out)
Compatibility facade for RPGActor skill-state serialization during state hot reload.
Definition RpgStateProvider.cpp:37
EVENGINE_API_PLATFORM bool restoreRpgState(const StateValue &in, std::string *err=nullptr)
Restore rpg state.
Definition RpgStateProvider.cpp:62