MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / exportState

Method exportState

src/logic/NpcScriptState.cpp:490–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490void NpcScriptState::exportState(const NpcAIState& state, json& j) const
491{
492 j["symIndex"] = state.symIndex;
493 j["symLoop"] = state.symLoop;
494 j["symEnd"] = state.symEnd;
495 j["phase"] = (int)state.phase;
496 j["valid"] = state.valid;
497 j["name"] = state.name;
498 j["stateTime"] = state.stateTime;
499 j["prgState"] = (int)state.prgState;
500 j["isRoutineState"] = state.isRoutineState;
501}
502
503void NpcScriptState::exportScriptState(json& j)
504{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected