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

◆ Tick()

override void AnimationTimer::Tick ( float timeslice)
inlineprotected

Ticks the timer, is called by timer subsystem.

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

703 {
704 if ( !m_Active )
705 return;
706
707
708 float diff = Math.AbsFloat(m_TargetValue - m_Value);
709 float step = m_time * timeslice;
710
711 if (diff < step)
712 {
714 if (!m_loop)
715 {
716 m_Active = false;
717 }
718 else
719 {
721 {
722 m_TargetValue = 0;
723 }
724 else
725 {
727 }
728
729 }
731 }
732 else
733 {
734 if (m_TargetValue > m_Value)
735 {
736 m_Value += step;
737 }
738 else
739 {
740 m_Value -= step;
741 }
742 }
743
745 }
string m_UpdateFunction
Определения tools.c:659
float m_TargetValueOriginal
Определения tools.c:656
string m_FinishedFunction
Определения tools.c:660
float m_Value
Определения tools.c:657
ref Param m_Params
Определения tools.c:661
float m_TargetValue
Определения tools.c:655
Managed m_TargetObject
Определения tools.c:658
bool m_Active
Определения tools.c:654
ScriptModule GameScript
Определения Game.c:12
proto native CGame GetGame()
proto volatile int CallFunction(Class inst, string function, out void returnVal, void parm)
float m_time
Определения tools.c:224
bool m_loop
Определения tools.c:222

Перекрестные ссылки Math::AbsFloat(), ScriptModule::CallFunction(), CGame::GameScript, GetGame(), m_Active, m_FinishedFunction, m_loop, m_Params, m_TargetObject, m_TargetValue, m_TargetValueOriginal, m_time, m_UpdateFunction и m_Value.