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

Method importState

src/logic/NpcScriptState.cpp:477–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void NpcScriptState::importState(NpcAIState& state, const json& j) const
478{
479 state.symIndex = j["symIndex"];
480 state.symLoop = j["symLoop"];
481 state.symEnd = j["symEnd"];
482 state.phase = (NpcAIState::EPhase)((int)j["phase"]);
483 state.valid = j["valid"];
484 state.name = j["name"];
485 state.stateTime = j["stateTime"];
486 state.prgState = (EPrgStates)((int)j["prgState"]);
487 state.isRoutineState = j["isRoutineState"];
488}
489
490void NpcScriptState::exportState(const NpcAIState& state, json& j) const
491{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected