载入中...
搜索中...
未找到
CardStateProvider.cpp
浏览该文件的文档.
30 bool restoreState(const StateValue& in, std::string* err) override { return restoreCardState(in, err); }
const std::string & asString() const
String payload; only valid when kind() == Kind::String.
Definition StateValue.h:59
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:66
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:22
Definition Card.cpp:12
bool captureCardState(StateValue &out)
CardData/Hand interaction-state serialization for state hot reload.
Definition CardStateProvider.cpp:43
bool restoreCardState(const StateValue &in, std::string *err=nullptr)
Definition CardStateProvider.cpp:58
@ Played
@ Discarded
@ Returning
@ Disabled