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

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

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

class  ActionResetKitchenTimerClockCB
 

Функции

ActionResetKitchenTimerClockCB ActionSingleUseBaseCB ActionResetKitchenTimer ()
 
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 {
26 ClockBase alarm = ClockBase.Cast(item);
27 return (alarm.IsRinging() || alarm.IsAlarmOn());
28 }
Definition EntityAI.c:95

◆ ActionResetKitchenTimer()

12 {
13 m_CallbackClass = ActionResetKitchenTimerClockCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_RESET_KITCHENTIMER;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONMOD_RESET_KITCHENTIMER;
16 m_Text = "#turn_off";
17 }
int m_CommandUIDProne
Definition ActionBase.c:32
int m_CommandUID
Definition ActionBase.c:31
Definition ActionResetKitchenTimer.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionResetKitchenTimerClockCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_RESET_KITCHENTIMER;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONMOD_RESET_KITCHENTIMER;

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

◆ HasProneException()

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

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
31 {
32 ClockBase alarm = ClockBase.Cast(action_data.m_MainItem);
33 if (alarm)
34 alarm.TurnOff();
35 }