PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
KitchenTimer Class Reference

Private Member Functions

override void Init ()
 
override void SetActions ()
 
override string GetExplosiveTriggerSlotName ()
 
override string GetToggleSound ()
 
override string GetRingingSound ()
 
string GetRingingStopSound ()
 
override string GetDestroyedSound ()
 
override string GetHitSound ()
 
override string GetWorkingSound ()
 
int GetMinutesMax ()
 
int Time01ToSeconds (float time01)
 
float SecondsTo01 (int seconds)
 
override float GetRingingDurationMax ()
 
override void TurnOff ()
 
void OnUpdate ()
 
override protected void Disarm ()
 
override protected void OnRingingStopClient ()
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override void SetAlarmTimeServer (float time01)
 
void SetAlarmTimeServerSecs (int inSecs)
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override string GetDebugText ()
 

Private Attributes

const string RINGING_SOUND = "KitchenTimer_Ring_Loop_SoundSet"
 
const string DESTROYED_SOUND = "AlarmClock_Destroyed_SoundSet"
 
const string HIT_SOUND = "AlarmClock_Hit_SoundSet"
 
const string WORKING_SOUND = "KitchenTimer_Ticking_Loop_SoundSet"
 
EffectSound m_RingingStopSound
 
int m_AlarmInSecs
 

Static Private Attributes

static ref NoiseParams m_NoisePar
 
static NoiseSystem m_NoiseSystem
 

Member Function Documentation

◆ Disarm()

override protected void Disarm ( )
inlineprivate

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx  outputList)
inlineprivate

References SAT_DEBUG_ACTION.

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate

◆ GetDestroyedSound()

override string GetDestroyedSound ( )
inlineprivate

References DESTROYED_SOUND.

◆ GetExplosiveTriggerSlotName()

override string GetExplosiveTriggerSlotName ( )
inlineprivate

◆ GetHitSound()

override string GetHitSound ( )
inlineprivate

References HIT_SOUND.

◆ GetMinutesMax()

int GetMinutesMax ( )
inlineprivate

Referenced by SecondsTo01(), and Time01ToSeconds().

◆ GetRingingDurationMax()

override float GetRingingDurationMax ( )
inlineprivate

Referenced by GetDebugText(), and OnUpdate().

◆ GetRingingSound()

override string GetRingingSound ( )
inlineprivate

References RINGING_SOUND.

◆ GetRingingStopSound()

string GetRingingStopSound ( )
inlineprivate

Referenced by OnRingingStopClient().

◆ GetToggleSound()

override string GetToggleSound ( )
inlineprivate

◆ GetWorkingSound()

override string GetWorkingSound ( )
inlineprivate

References WORKING_SOUND.

◆ Init()

override void Init ( )
inlineprivate

◆ OnAction()

override bool OnAction ( int  action_id,
Man  player,
ParamsReadContext  ctx 
)
inlineprivate

◆ OnRingingStopClient()

override protected void OnRingingStopClient ( )
inlineprivate

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)
inlineprivate

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)
inlineprivate

◆ OnUpdate()

◆ SecondsTo01()

float SecondsTo01 ( int  seconds)
inlineprivate

◆ SetActions()

override void SetActions ( )
inlineprivate

◆ SetAlarmTimeServer()

override void SetAlarmTimeServer ( float  time01)
inlineprivate

◆ SetAlarmTimeServerSecs()

void SetAlarmTimeServerSecs ( int  inSecs)
inlineprivate

References SecondsTo01(), and SetAlarmTimeServer().

Referenced by Disarm(), OnAction(), and OnStoreLoad().

◆ Time01ToSeconds()

int Time01ToSeconds ( float  time01)
inlineprivate

References GetMinutesMax(), and Math::Lerp().

Referenced by SetAlarmTimeServer().

◆ TurnOff()

override void TurnOff ( )
inlineprivate

Field Documentation

◆ DESTROYED_SOUND

const string DESTROYED_SOUND = "AlarmClock_Destroyed_SoundSet"
private

Referenced by GetDestroyedSound().

◆ HIT_SOUND

const string HIT_SOUND = "AlarmClock_Hit_SoundSet"
private

Referenced by GetHitSound().

◆ m_AlarmInSecs

int m_AlarmInSecs
private

◆ m_NoisePar

ref NoiseParams m_NoisePar
staticprivate

Referenced by Init(), and OnUpdate().

◆ m_NoiseSystem

NoiseSystem m_NoiseSystem
staticprivate

Referenced by Init(), and OnUpdate().

◆ m_RingingStopSound

EffectSound m_RingingStopSound
private

Referenced by OnRingingStopClient().

◆ RINGING_SOUND

const string RINGING_SOUND = "KitchenTimer_Ring_Loop_SoundSet"
private

Referenced by GetRingingSound().

◆ WORKING_SOUND

const string WORKING_SOUND = "KitchenTimer_Ticking_Loop_SoundSet"
private

Referenced by GetWorkingSound().


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