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

◆ HasMovementStateChanged()

bool StaminaHandler::HasMovementStateChanged ( )
inlineprotected

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

457 {
458 // Only call GetMovementState if we need to check for changes
459 m_Player.GetMovementState(m_State);
460
461 bool changed = (m_State.m_CommandTypeId != m_LastCommandTypeId || m_State.m_iMovement != m_LastMovementIdx || m_State.m_iStanceIdx != m_LastStanceIdx);
462
463 if (changed)
464 {
465 // Update cached values
466 m_LastCommandTypeId = m_State.m_CommandTypeId;
467 m_LastMovementIdx = m_State.m_iMovement;
468 m_LastStanceIdx = m_State.m_iStanceIdx;
469 }
470
471 return changed;
472 }
ref HumanMovementState m_State
Определения StaminaHandler.c:280
int m_LastMovementIdx
Определения StaminaHandler.c:306
int m_LastCommandTypeId
Определения StaminaHandler.c:305
int m_LastStanceIdx
Определения StaminaHandler.c:307
PlayerBase m_Player
Определения StaminaHandler.c:282

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

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