DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
AnimationTimer Class Reference

AnimationTimer class. This timer is for animating float value.
usage: More...

Private Member Functions

void AnimationTimer (int category=CALL_CATEGORY_SYSTEM)
 
void ~AnimationTimer ()
 
void Run (float targetVal, Managed obj, string updateFunc, string finishedFunc, float startingVal=0, bool loop=false, float speed=1.0, Param params=null, int category=CALL_CATEGORY_SYSTEM)
 
float GetValue ()
 Returns actual animated value.
 
override bool IsRunning ()
 
override void Tick (float timeslice)
 Ticks the timer, is called by timer subsystem.
 

Private Attributes

private bool m_Active
 
private float m_TargetValue
 
private float m_TargetValueOriginal
 
private float m_Value
 
protected Managed m_TargetObject
 
protected string m_UpdateFunction
 
protected string m_FinishedFunction
 
protected ref Param m_Params
 

Detailed Description

AnimationTimer class. This timer is for animating float value.
usage:

class MyObject
{
ref AnimationTimer myAnim;
void MyObject()
{
myAnim = new AnimationTimer();
myAnim.Run(60, this, "Refresh");
}
void Refresh()
{
Print(myAnim.GetValue());
}
};
void Refresh()
Definition SizeToChild.c:108
AnimationTimer class. This timer is for animating float value. usage:
Definition tools.c:653
proto void Print(void var)
Prints content of variable to console/log.

Constructor & Destructor Documentation

◆ AnimationTimer()

void AnimationTimer ( int  category = CALL_CATEGORY_SYSTEM)
inlineprivate

References OnInit().

◆ ~AnimationTimer()

void ~AnimationTimer ( )
inlineprivate

References SetRunning().

Member Function Documentation

◆ GetValue()

float GetValue ( )
inlineprivate

Returns actual animated value.

References m_Value.

Referenced by Land_Underground_EntranceBase::OnUpdateServer(), OnUpdateTimerIn(), and OnUpdateTimerOut().

◆ IsRunning()

override bool IsRunning ( )
inlineprivate

References m_Active.

Referenced by CalculateLinePointFade().

◆ Run()

void Run ( float  targetVal,
Managed  obj,
string  updateFunc,
string  finishedFunc,
float  startingVal = 0,
bool  loop = false,
float  speed = 1.0,
Param  params = null,
int  category = CALL_CATEGORY_SYSTEM 
)
inlineprivate

◆ Tick()

override void Tick ( float  timeslice)
inlineprivate

Field Documentation

◆ m_Active

private bool m_Active
private

Referenced by IsRunning(), Run(), and Tick().

◆ m_FinishedFunction

protected string m_FinishedFunction
private

Referenced by Run(), and Tick().

◆ m_Params

protected ref Param m_Params
private

Referenced by Run(), and Tick().

◆ m_TargetObject

protected Managed m_TargetObject
private

Referenced by Run(), and Tick().

◆ m_TargetValue

private float m_TargetValue
private

Referenced by Run(), and Tick().

◆ m_TargetValueOriginal

private float m_TargetValueOriginal
private

Referenced by Run(), and Tick().

◆ m_UpdateFunction

protected string m_UpdateFunction
private

Referenced by Run(), and Tick().

◆ m_Value

private float m_Value
private

Referenced by GetValue(), Run(), and Tick().


The documentation for this class was generated from the following file: