122 for (
int i =
Count() - 1; i >= 0; i--)
167 if (m_processing)
return;
174 bool is_holding =
false;
190 while (
Count() > last_index)
192 ctx =
Get(last_index);
211 m_processing =
false;
337 ErrorEx(
"Attempting to Init a timer when the game does not exist (g_Game == null)");
340 protected void OnStart(
float duration,
bool loop)
397 for (
int i =
Count() - 1; i >= 0; i--)
399 Get(i).OnTimerQueueDestoryed();
414 for (
int i = count - 1; i >= 0; i--)
416 Get(i).Tick(timeslice);
449 if (continue_ &&
m_alpha > 0.95)
484 if (continue_ &&
m_alpha < 0.05)
595 void Run(
float duration,
Managed obj,
string fn_name,
Param params = NULL,
bool loop =
false)
671 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)
700 override void Tick(
float timeslice)
707 float step =
m_time * timeslice;
823 float step =
m_time * timeslice;
929 value_array.Insert(value);
999 temperature = temperature - 20;
1000 temperature =
Math.
Clamp( temperature, -50, 50);
1003 red =
Math.
Clamp ( red - ((red/50 )*temperature), 0, 255);
1004 green =
Math.
Clamp ( green - ((green/50 )*temperature), 0, 255);
1005 blue =
Math.
Clamp ( blue+((blue/50)*temperature), 0, 255);
1009 temperature =
Math.
Clamp(temperature, -100, 100);
1010 blue =
Math.
Clamp (blue - ((blue / 100) * temperature), 0, 255);
1011 green =
Math.
Clamp (green - ((green / 100) * temperature), 0, 255);
1012 red =
Math.
Clamp (red + ((red / 100) * temperature), 0, 255);
1015 return ARGB(alpha, red, green, blue);
1024 if (value ==
"true" || value ==
"1")
void Remove(Object object)
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void Clear(bool clearFile=false)
void AnimationTimer(int category=CALL_CATEGORY_SYSTEM)
override void Tick(float timeslice)
Ticks the timer, is called by timer subsystem.
float m_TargetValueOriginal
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)
override bool IsRunning()
string m_FinishedFunction
float GetValue()
Returns actual animated value.
void SetValue(float val)
Sets both value and target value.
float GetValue()
Returns actual animated value.
void Animate(float val, float speed=1.0)
Starts animate value until value reaches target value.
void Tick(float timeslice)
Ticks the timer, is called by timer subsystem.
void AnimateLoop(float speed=1.0)
Starts infinite animation loop <-1,1>. Based on sinus transition.
float GetTargetValue()
Returns target value. While AnimateLoop returns angle of cycle in radians.
override void Tick()
System function, don't call it.
ref Param3< int, int, bool > m_mouse_params
void CallQueueContext(Class target, string fn, Param params)
void CallParams(Param params)
DragQueue Class provide callbacks while mouse is dragging. Callback function must have exact argument...
Super root of all classes in Enforce script.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
void FadeOut(Widget w, float time, bool continue_=false)
Make "fade out" effect on Widget (transparency goes from 1.0 to 0.0)
void Timer(int category=CALL_CATEGORY_SYSTEM)
void Run(float duration, Managed obj, string fn_name, Param params=NULL, bool loop=false)
Starts timer.
void FadeIn(Widget w, float time, bool continue_=false)
Make "fade in" effect on Widget (transparency goes from 0.0 to 1.0)
Simple class for fading Widgets.
void Tick(float timeslice)
void Call(Class obj, string fn_name, Param params=NULL)
Creates new call request, add it on queue and execute during frame update (depends on call category)
void RemoveCalls(Class obj)
Removes all queued calls for object (call this function when object is going to be deleted)
void Tick()
System function, don't call it.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
ref array< ref array< V > > m_values
K GetKeyByIndex(int index)
void Insert(K key, V value)
array< V > GetByIndex(int index)
void RemoveByIndex(int index)
const float ITEM_TEMPERATURE_NEUTRAL_ZONE_UPPER_LIMIT
const float ITEM_TEMPERATURE_NEUTRAL_ZONE_LOWER_LIMIT
damage per second dealt to attachment by fire
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto int AbsInt(int i)
Returns absolute value.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static proto float AbsFloat(float f)
Returns absolute value.
static proto int GetNumberOfSetBits(int i)
returns the number of bits set in a bitmask i
proto native int GetMouseState(MouseState index)
proto void GetMousePos(out int x, out int y)
void OnInit()
Callback for user defined initialization. Called for all suites during TestHarness....
int ARGB(int a, int r, int g, int b)