6 const string HIT_SOUND =
"AlarmClock_Hit_SoundSet";
68 return "TriggerAlarmClock";
76 super.GetDebugActions(outputList);
81 if (super.OnAction(action_id, player, ctx))
85 if (action_id ==
EActions.ACTIVATE_ENTITY)
98 if(
g_Game.IsDedicatedServer())
107 debug_output =
"this is client";
119 int pass, hour, minute;
120 g_Game.GetWorld().GetDate(pass, pass, pass, hour, minute);
126 if ( alarm_hand_in_minutes == curr_time_in_minutes )
149 SetAnimationPhaseNow(
"ClockAlarm", value);
155 if (!super.OnStoreLoad(ctx, version))
165 if ( !ctx.
Read( state ) )
172 if ( !ctx.
Read( time ) )
193 super.OnStoreSave(ctx);
Param4< int, int, string, int > TSelectableActionInfoWithColor
eBleedingSourceType GetType()
ActionTurnOffAlarmClockCB ActionSingleUseBaseCB ActionTurnOffAlarmClock()
ActionTurnOnAlarmClockCB ActionSingleUseBaseCB ActionTurnOnAlarmClock()
void AddAction(typename actionName)
enum EAlarmClockState m_AlarmTime01
void OnRingingStopClient()
void SetAlarmInXMins(int in_mins)
static int ConvertAlarmHand01ToMins12h(float time01)
float GetRingingDurationMax()
static const float UPDATE_TICK_RATE
void SetAlarmTimeServer(float time01)
static int ConvertTimeToMins12h(int hour, int minute)
class NoiseSystem NoiseParams()
enum EObjectTemperatureState m_State
void SetState(bool state)
void AnimateAlarmHand(float value)
const string RINGING_SOUND
override string GetHitSound()
override void OnStoreSave(ParamsWriteContext ctx)
const string TURN_TOGGLE_SOUND
override string GetDestroyedSound()
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override string GetDebugText()
override void OnDebugSpawn()
const string DESTROYED_SOUND
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
static ref NoiseParams m_NoisePar
override string GetToggleSound()
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override string GetRingingSound()
void ~AlarmClock_ColorBase()
override string GetExplosiveTriggerSlotName()
static NoiseSystem m_NoiseSystem
override void SetActions()
proto bool Write(void value_out)
proto bool Read(void value_in)
proto string ToString(bool simple=true)
Serializer ParamsReadContext
Serializer ParamsWriteContext
const int SAT_DEBUG_ACTION
vector GetPosition()
Get the world position of the Effect.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.