DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionTurnOnAlarmClock.c

См. исходные тексты.

Структуры данных

class  ActionTurnOnAlarmClockCB
 

Функции

ActionTurnOnAlarmClockCB ActionSingleUseBaseCB ActionTurnOnAlarmClock ()
 
override void CreateActionComponent ()
 
override bool HasProneException ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
25 {
27 return (!alarm.IsAlarmOn() && !alarm.IsRinging());
28 }
Definition AlarmClock.c:2
Definition EntityAI.c:95

◆ ActionTurnOnAlarmClock()

ActionTurnOnAlarmClockCB ActionSingleUseBaseCB ActionTurnOnAlarmClock ( )
12 {
13 m_CallbackClass = ActionTurnOnAlarmClockCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_STOP_ALARM;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_STOP_ALARM;
16 m_Text = "#turn_on";
17 }
int m_CommandUIDProne
Definition ActionBase.c:32
int m_CommandUID
Definition ActionBase.c:31
Definition ActionTurnOnAlarmClock.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions() и AlarmClock_ColorBase::SetActions().

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionTurnOnAlarmClockCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_STOP_ALARM;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_STOP_ALARM;

Перекрестные ссылки m_CommandUID и m_CommandUIDProne.

◆ HasProneException()

override bool HasProneException ( )
20 {
21 return true;
22 }

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
40 {
42 if (alarm)
43 alarm.TurnOn();
44 }