| 562 | } |
| 563 | |
| 564 | void ScriptCallBack(CBlend* B) |
| 565 | { |
| 566 | CScriptEntity* l_tpScriptMonster = static_cast<CScriptEntity*>(B->CallbackParam); |
| 567 | VERIFY(l_tpScriptMonster); |
| 568 | if (l_tpScriptMonster->GetCurrentAction() && !B->bone_or_part) |
| 569 | { |
| 570 | if (!l_tpScriptMonster->GetCurrentAction()->m_tAnimationAction.m_bCompleted) |
| 571 | l_tpScriptMonster->object().callback(GameObject::eActionTypeAnimation)(l_tpScriptMonster->object().lua_game_object(), u32(eActionTypeAnimation)); |
| 572 | |
| 573 | l_tpScriptMonster->m_tpScriptAnimation.invalidate(); |
| 574 | l_tpScriptMonster->GetCurrentAction()->m_tAnimationAction.m_bCompleted = true; |
| 575 | if (l_tpScriptMonster->GetActionCount()) |
| 576 | l_tpScriptMonster->ProcessScripts(); |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | bool CScriptEntity::bfScriptAnimation() |
| 581 | { |
nothing calls this directly
no test coverage detected