载入中...
搜索中...
未找到
RpgStateProvider.cpp
浏览该文件的文档.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
static Value string(std::string value)
Compatibility factory for a string value.
Definition Value.h:121
Runtime-state serialization for state hot reload.
Definition IStateProvider.h:29
static const std::vector< RPGActor * > & liveActors()
返回当前 Table 中所有存活的 RPGActor(含派生类)。 StatusSystem::update / SkillSystem::update 用它遍历所有 actor 逐帧推进。
Definition RPGActor.cpp:27
static void cancelCast(RPGActor *actor)
打断当前读条(不退还已扣除的消耗/冷却)。
Definition SkillDefinitionRuntime.cpp:474
static void setCooldownRemaining(RPGActor *actor, const std::string &skillId, float seconds)
Sets the cooldown remaining.
Definition SkillDefinitionRuntime.cpp:426
static bool knows(RPGActor *actor, const std::string &skillId)
Knows.
Definition SkillDefinitionRuntime.cpp:402
EVENGINE_API_PLATFORM Result< Value > captureRpgState()
Capture RPG hot-reload state as an owning canonical value.
Definition RpgStateProvider.cpp:37
EVENGINE_API_PLATFORM Result< void > restoreRpgState(const Value &state)
Validate every actor snapshot before publishing any RPG hot-reload state.
Definition RpgStateProvider.cpp:56
EVENGINE_API_PLATFORM Result< void > resetRpgStateResult()
Cancel all in-flight RPG casts.
Definition RpgStateProvider.cpp:110
@ InvalidArgument
@ Conflict
@ Pending
StateValue toLegacyStateValue(const Value &value)
Project a canonical value into the legacy reload snapshot format.
Definition StateValue.cpp:60
Value toCanonicalStateValue(const StateValue &value)
Copy a legacy reload tree into the canonical owning value protocol.
Definition StateValue.cpp:38