DayZ 1.24
Loading...
Searching...
No Matches
UniversalTemperatureSource Class Reference

original Timer deletes m_params which is unwanted More...

Inheritance diagram for UniversalTemperatureSource:
[legend]
Collaboration diagram for UniversalTemperatureSource:
[legend]

Private Member Functions

override void OnTimer ()
 
override void Stop ()
 
void SetParams (Param params)
 

Detailed Description

original Timer deletes m_params which is unwanted

Definition at line 25 of file UniversalTemperatureSource.c.

Member Function Documentation

◆ OnTimer()

override void UniversalTemperatureSource::OnTimer ( )
inlineprivate

Definition at line 27 of file UniversalTemperatureSource.c.

28 {
29 if (m_params)
30 GetGame().GameScript.CallFunctionParams(m_target, m_function, null, m_params);
31 else
32 GetGame().GameScript.CallFunction(m_target, m_function, null, 0);
33 }
proto native CGame GetGame()

References GetGame().

◆ SetParams()

void UniversalTemperatureSource::SetParams ( Param params)
inlineprivate

Definition at line 41 of file UniversalTemperatureSource.c.

42 {
43 m_params = params;
44 }

◆ Stop()

override void UniversalTemperatureSource::Stop ( )
inlineprivate

Definition at line 35 of file UniversalTemperatureSource.c.

36 {
37 SetRunning(false);
38 m_time = 0;
39 }
float m_time
Definition tools.c:212
void SetRunning(bool running)
Definition tools.c:335

References m_time, and SetRunning().


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