5 const string HIT_SOUND =
"AlarmClock_Hit_SoundSet";
40 return "TriggerKitchenTimer";
55 return "KitchenTimer_Ring_End_SoundSet";
106 SetAnimationPhaseNow(
"ClockAlarm", time01);
143 super.OnRingingStopClient();
149 if (!super.OnStoreLoad(ctx, version))
159 if (!ctx.
Read(state))
186 super.OnStoreSave(ctx);
200 SetAnimationPhaseNow(
"ClockAlarm", time01);
224 super.GetDebugActions(outputList);
229 if (super.OnAction(action_id, player, ctx))
234 if (action_id ==
EActions.ALARM_SET_AHEAD)
246 if (
g_Game.IsDedicatedServer())
248 debug_output =
"alarm in: " +
m_AlarmInSecs.ToString() +
" secs" +
"\n";
255 debug_output =
"this is client";
Param4< int, int, string, int > TSelectableActionInfoWithColor
eBleedingSourceType GetType()
ActionResetKitchenTimerClockCB ActionSingleUseBaseCB ActionResetKitchenTimer()
void AddAction(typename actionName)
Wrapper class for managing sound through SEffectManager.
EffectSound m_RingingStopSound
const string WORKING_SOUND
void OnRingingStopClient()
void SetAlarmTimeServerSecs(int inSecs)
override void OnStoreSave(ParamsWriteContext ctx)
override string GetDebugText()
override string GetToggleSound()
override string GetRingingSound()
float SecondsTo01(int seconds)
string GetRingingStopSound()
static ref NoiseParams m_NoisePar
override string GetExplosiveTriggerSlotName()
const string DESTROYED_SOUND
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
override void SetAlarmTimeServer(float time01)
static NoiseSystem m_NoiseSystem
override string GetHitSound()
int Time01ToSeconds(float time01)
override float GetRingingDurationMax()
override string GetWorkingSound()
override string GetDestroyedSound()
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
const string RINGING_SOUND
override void SetActions()
static float GetNoiseReduction(Weather weather)
Manager class for managing Effect (EffectParticle, EffectSound).
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
proto bool Write(void value_out)
proto bool Read(void value_in)
proto string ToString(bool simple=true)
EffectSound m_WorkingSound
static const float UPDATE_TICK_RATE
EffectSound m_RingingSoundLoop
Serializer ParamsReadContext
Serializer ParamsWriteContext
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
const int SAT_DEBUG_ACTION
vector GetPosition()
Get the world position of the Effect.
class NoiseSystem NoiseParams()
enum EObjectTemperatureState m_State
void SetState(bool state)