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

Method getCurrentStateSym

src/logic/NpcScriptState.cpp:427–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427size_t NpcScriptState::getCurrentStateSym()
428{
429 if (m_CurrentState.valid)
430 {
431 if (m_CurrentState.prgState != EPrgStates::NPC_PRGAISTATE_INVALID)
432 return static_cast<size_t>(m_CurrentState.prgState);
433
434 return m_CurrentState.symIndex;
435 }
436
437 return 0;
438}
439
440void NpcScriptState::reinitRoutine()
441{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected