30 GetGame().GameScript.CallFunctionParams(m_target, m_function,
null, m_params);
32 GetGame().GameScript.CallFunction(m_target, m_function,
null, 0);
51 protected bool m_Active
74 pParent.SetUniversalTemperatureSource(
this);
109 return GetTemperatureRaw();
115 return m_ResultValues.m_Temperature;
174 settings.m_Position =
settings.m_Parent.GetUniversalTemperatureSourcePosition();
233 Debug.
Log(
string.Format(
"GetName index: %1 from data of length: %2",
pIndex,
m_Names.Count()),
"UniversalTemperatureSourceDebug");
244 Debug.
Log(
string.Format(
"GetValue index: %1 from data of length: %2",
pIndex,
m_Values.Count()),
"UniversalTemperatureSourceDebug");
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
class UniversalTemperatureSourceSettings m_Temperature
ref array< string > m_Pairs
values parsed from m_Pairs
ref array< string > m_Names
array< string > ParseData()
void AddHeader(string header)
void Add(string name, string value)
const string DELIMITER_KEYPAIR
ref array< string > m_Values
names parsed from m_Pairs
void UniversalTemperatureSourceDebug()
keeps first iteration of parsed data from the m_Data
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
float GetTemperatureMax()
void Init(EntityAI pParent)
void UniversalTemperatureSource(EntityAI pParent, UniversalTemperatureSourceSettings pSettings, UniversalTemperatureSourceLambdaBase pLambda)
void ~UniversalTemperatureSource()
void SetDefferedActive(bool pActive, float pSeconds)
ref UniversalTemperatureSourceTimer m_Timer
UniversalTemperatureSourceSettings m_Settings
float GetTemperatureRaw()
void ChangeSettings(UniversalTemperatureSourceSettings pSettings)
void SetActive(bool pActive)
ref UniversalTemperatureSourceLambdaBase m_Lambda
void Update(UniversalTemperatureSourceSettings settings, UniversalTemperatureSourceLambdaBase lambda)
float GetTemperatureMin()
ref UniversalTemperatureSourceResult m_ResultValues
original Timer deletes m_params which is unwanted
void SetParams(Param params)
vector m_Position
if the temperature generated is also set as Temperature Stat on Item itself
bool m_Updateable
maximum range where the receiver can get some temperature
float m_RangeFull
temperature cap that will limit the return value from GetTemperature method
float m_TemperatureCap
max temperature you can get from the TemperatureSource
float m_RangeMax
range where the full temperature is given to receiver
bool m_ManualUpdate
if the Update is running periodically
float m_TemperatureMin
how often the Update is ticking
float m_TemperatureMax
min temperature you can get from the TemperatureSource
bool m_AffectStat
update is called manually (ex. own tick of parent entity)
proto native CGame GetGame()
static proto float Min(float x, float y)
Returns smaller of two given values.
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.