DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ HasMovementStateChanged()

bool StaminaHandler::HasMovementStateChanged ( )
inlineprotected

См. определение в файле StaminaHandler.c строка 471

472 {
473 // Only call GetMovementState if we need to check for changes
474 m_Player.GetMovementState(m_State);
475
476 bool changed = (m_State.m_CommandTypeId != m_LastCommandTypeId || m_State.m_iMovement != m_LastMovementIdx || m_State.m_iStanceIdx != m_LastStanceIdx);
477
478 if (changed)
479 {
480 // Update cached values
481 m_LastCommandTypeId = m_State.m_CommandTypeId;
482 m_LastMovementIdx = m_State.m_iMovement;
483 m_LastStanceIdx = m_State.m_iStanceIdx;
484 }
485
486 return changed;
487 }
ref HumanMovementState m_State
Определения StaminaHandler.c:283
int m_LastMovementIdx
Определения StaminaHandler.c:309
int m_LastCommandTypeId
Определения StaminaHandler.c:308
int m_LastStanceIdx
Определения StaminaHandler.c:310
PlayerBase m_Player
Определения StaminaHandler.c:285

Перекрестные ссылки m_LastCommandTypeId, m_LastMovementIdx, m_LastStanceIdx, m_Player и m_State.

Используется в Update().