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

Method getAnimationTransitionNames

src/logic/MobController.cpp:456–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456void MobController::getAnimationTransitionNames(int stateFrom, int stateTo,
457 std::string& outMobAnimation,
458 std::string& outNpcAnimation)
459{
460 if (!m_MobCore)
461 return;
462
463 if (stateTo == -1)
464 {
465 // Go from current state to stand
466 outMobAnimation = "";
467 outNpcAnimation = "T_" + m_MobCore->getSchemeName() + "_S" + std::to_string(stateFrom) + "_2_STAND";
468 }
469 else
470 {
471 // Go from current state to the next one
472 outMobAnimation = "T_S" + std::to_string(stateFrom) + "_2_S" + std::to_string(stateTo);
473 outNpcAnimation = "T_" + m_MobCore->getSchemeName() + "_S" + std::to_string(stateFrom) + "_2_S" + std::to_string(stateTo);
474 }
475}
476
477bool MobController::isInteractingWith(Handle::EntityHandle npc)
478{

Callers

nothing calls this directly

Calls 1

getSchemeNameMethod · 0.45

Tested by

no test coverage detected