MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ClearActionQueue

Method ClearActionQueue

ogsr_engine/xrGame/script_entity.cpp:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void CScriptEntity::ClearActionQueue()
71{
72 if (!m_tpActionQueue.empty())
73 vfFinishAction(m_tpActionQueue.front());
74
75 while (!m_tpActionQueue.empty())
76 {
77 xr_delete(m_tpActionQueue.front());
78 m_tpActionQueue.erase(m_tpActionQueue.begin());
79 }
80
81 m_tpScriptAnimation.invalidate();
82 m_tpCurrentEntityAction = 0;
83 m_tpNextAnimation.invalidate();
84 m_use_animation_movement_controller = false;
85}
86
87void CScriptEntity::reinit()
88{

Callers 1

Calls 6

xr_deleteFunction · 0.85
emptyMethod · 0.45
frontMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected