| 475 | } |
| 476 | |
| 477 | void 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 | |
| 490 | void NpcScriptState::exportState(const NpcAIState& state, json& j) const |
| 491 | { |
nothing calls this directly
no outgoing calls
no test coverage detected