Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
KitchenTimer Class Reference
Inheritance diagram for KitchenTimer:

Protected Member Functions

void Disarm ()
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
override string GetDebugText ()
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
void OnRingingStopClient ()
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void SetAlarmTimeServer (float time01)
void SetAlarmTimeServerSecs (int inSecs)

Private Member Functions

override string GetDestroyedSound ()
override string GetExplosiveTriggerSlotName ()
override string GetHitSound ()
int GetMinutesMax ()
override float GetRingingDurationMax ()
override string GetRingingSound ()
string GetRingingStopSound ()
override string GetToggleSound ()
override string GetWorkingSound ()
override void Init ()
void OnUpdate ()
float SecondsTo01 (int seconds)
override void SetActions ()
int Time01ToSeconds (float time01)
override void TurnOff ()

Private Attributes

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

Static Private Attributes

static ref NoiseParams m_NoisePar
static NoiseSystem m_NoiseSystem

Detailed Description

Definition at line 1 of file kitchentimer.c.

Member Function Documentation

◆ Disarm()

void Disarm ( )
inlineprotected

Definition at line 132 of file kitchentimer.c.

References SetAlarmTimeServerSecs().

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected

Definition at line 219 of file kitchentimer.c.

References SAT_DEBUG_ACTION.

◆ GetDebugText()

override string GetDebugText ( )
inlineprotected

◆ GetDestroyedSound()

override string GetDestroyedSound ( )
inlineprivate

Definition at line 58 of file kitchentimer.c.

References DESTROYED_SOUND.

◆ GetExplosiveTriggerSlotName()

override string GetExplosiveTriggerSlotName ( )
inlineprivate

Definition at line 38 of file kitchentimer.c.

◆ GetHitSound()

override string GetHitSound ( )
inlineprivate

Definition at line 63 of file kitchentimer.c.

References HIT_SOUND.

◆ GetMinutesMax()

int GetMinutesMax ( )
inlineprivate

Definition at line 73 of file kitchentimer.c.

Referenced by SecondsTo01(), and Time01ToSeconds().

◆ GetRingingDurationMax()

override float GetRingingDurationMax ( )
inlineprivate

Definition at line 89 of file kitchentimer.c.

Referenced by GetDebugText(), and OnUpdate().

◆ GetRingingSound()

override string GetRingingSound ( )
inlineprivate

Definition at line 48 of file kitchentimer.c.

References RINGING_SOUND.

◆ GetRingingStopSound()

string GetRingingStopSound ( )
inlineprivate

Definition at line 53 of file kitchentimer.c.

Referenced by OnRingingStopClient().

◆ GetToggleSound()

override string GetToggleSound ( )
inlineprivate

Definition at line 43 of file kitchentimer.c.

◆ GetWorkingSound()

override string GetWorkingSound ( )
inlineprivate

Definition at line 68 of file kitchentimer.c.

References WORKING_SOUND.

◆ Init()

override void Init ( )
inlineprivate

Definition at line 14 of file kitchentimer.c.

References g_Game, GetType(), m_NoisePar, m_NoiseSystem, and NoiseParams().

◆ OnAction()

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

Definition at line 227 of file kitchentimer.c.

References g_Game, and SetAlarmTimeServerSecs().

◆ OnRingingStopClient()

void OnRingingStopClient ( )
inlineprotected

Definition at line 138 of file kitchentimer.c.

References GetRingingStopSound(), m_RingingSoundLoop, and m_RingingStopSound.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Definition at line 184 of file kitchentimer.c.

References m_AlarmInSecs, m_State, and Serializer::Write().

◆ OnUpdate()

◆ SecondsTo01()

float SecondsTo01 ( int seconds)
inlineprivate

Definition at line 84 of file kitchentimer.c.

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

Referenced by OnUpdate(), and SetAlarmTimeServerSecs().

◆ SetActions()

override void SetActions ( )
inlineprivate

Definition at line 30 of file kitchentimer.c.

References ActionResetKitchenTimer(), and AddAction().

◆ SetAlarmTimeServer()

override void SetAlarmTimeServer ( float time01)
inlineprotected

◆ SetAlarmTimeServerSecs()

void SetAlarmTimeServerSecs ( int inSecs)
inlineprotected

Definition at line 209 of file kitchentimer.c.

References SecondsTo01(), and SetAlarmTimeServer().

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

◆ Time01ToSeconds()

int Time01ToSeconds ( float time01)
inlineprivate

Definition at line 78 of file kitchentimer.c.

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

Referenced by SetAlarmTimeServer().

◆ TurnOff()

override void TurnOff ( )
inlineprivate

Definition at line 94 of file kitchentimer.c.

References SEffectManager::DestroyEffect(), and m_WorkingSound.

Referenced by OnUpdate().

Field Documentation

◆ DESTROYED_SOUND

const string DESTROYED_SOUND = "AlarmClock_Destroyed_SoundSet"
private

Definition at line 4 of file kitchentimer.c.

Referenced by GetDestroyedSound().

◆ HIT_SOUND

const string HIT_SOUND = "AlarmClock_Hit_SoundSet"
private

Definition at line 5 of file kitchentimer.c.

Referenced by GetHitSound().

◆ m_AlarmInSecs

int m_AlarmInSecs
private

Definition at line 12 of file kitchentimer.c.

Referenced by GetDebugText(), OnStoreSave(), OnUpdate(), and SetAlarmTimeServer().

◆ m_NoisePar

ref NoiseParams m_NoisePar
staticprivate

Definition at line 9 of file kitchentimer.c.

Referenced by Init(), and OnUpdate().

◆ m_NoiseSystem

NoiseSystem m_NoiseSystem
staticprivate

Definition at line 10 of file kitchentimer.c.

Referenced by Init(), and OnUpdate().

◆ m_RingingStopSound

EffectSound m_RingingStopSound
private

Definition at line 8 of file kitchentimer.c.

Referenced by OnRingingStopClient().

◆ RINGING_SOUND

const string RINGING_SOUND = "KitchenTimer_Ring_Loop_SoundSet"
private

Definition at line 3 of file kitchentimer.c.

Referenced by GetRingingSound().

◆ WORKING_SOUND

const string WORKING_SOUND = "KitchenTimer_Ticking_Loop_SoundSet"
private

Definition at line 6 of file kitchentimer.c.

Referenced by GetWorkingSound().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/entities/itembase/gear/tools/kitchentimer.c