DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionTurnOffWhileInHands
+ Граф наследования:ActionTurnOffWhileInHands:

Закрытые члены

void ActionTurnOffWhileInHands ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool HasProneException ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 

Подробное описание

Конструктор(ы)

◆ ActionTurnOffWhileInHands()

void ActionTurnOffWhileInHands ( )
inlineprivate
4 {
5 m_Text = "#switch_off";
6 }
string m_Text
Definition ActionBase.c:58

Перекрестные ссылки ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
25 {
26 if (item.IsInherited(Roadflare))
27 {
28 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_LIGHTFLARE;
29 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_LIGHTFLARE;
30 }
31 else if (item.IsInherited(Chemlight_ColorBase))
32 {
33 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_LITCHEMLIGHT;
34 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_LITCHEMLIGHT;
35 }
36 else if (item.IsInherited(GPSReceiver))
37 {
38 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_PRESS_TRIGGER;
39 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_PRESS_TRIGGER;
40 }
41 else
42 {
43 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ITEM_OFF;
44 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_ITEM_OFF;
45 }
46
47 return item.HasEnergyManager() && item.GetCompEM().CanSwitchOff();
48 }
int m_CommandUIDProne
Definition AnimatedActionBase.c:144
int m_CommandUID
Definition AnimatedActionBase.c:143
Definition ChemLight.c:2
Definition GPSReceiver.c:2
Definition EntityAI.c:95
Definition Roadflare.c:25
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
9 {
12 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTNone.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ HasProneException()

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

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
15 {
16 return false;
17 }

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
inlineprivate
51 {
52 action_data.m_MainItem.GetCompEM().SwitchOff();
53 }

Объявления и описания членов класса находятся в файле: