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

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

override void CreateConditionComponents ()
 
void ActionDismantleGardenPlot ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
void SetupAnimation (ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
- Закрытые члены унаследованные от ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

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

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

◆ ActionDismantleGardenPlot()

void ActionDismantleGardenPlot ( )
inlineprivate
19 {
21 m_FullBody = true;
22 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
24 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DIGMANIPULATE;
25
26 m_Text = "#remove_garden_plot";
27 }
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
int m_StanceMask
Definition ActionBase.c:62
Definition ActionDismantleGardenPlot.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, ActionBase::m_FullBody, ActionBase::m_SpecialtyWeight, ActionBase::m_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
30 {
31 //Action not allowed if player has broken legs
32 if ( player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS || player.GetInColdArea())
33 return false;
34
35 GardenPlot targetPlot = GardenPlot.Cast( target.GetObject() );
36
37 if ( targetPlot && !player.IsPlacingLocal() )
38 return true;
39 else
40 return false;
41 }
eBrokenLegs
Definition EBrokenLegs.c:2

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
13 {
14 m_ConditionItem = new CCINonRuined;//new CCINone;
16 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTCursorNoRuinCheck.c:2

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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
52 {
53 GardenPlot targetPlot = GardenPlot.Cast( action_data.m_Target.GetObject() );
54 targetPlot.Delete();
55
56 if ( GetGame().IsServer() )
57 MiscGameplayFunctions.DealAbsoluteDmg( action_data.m_MainItem, 10 );
58 }
proto native CGame GetGame()

Перекрестные ссылки GetGame().

◆ SetupAnimation()

void SetupAnimation ( ItemBase item)
inlineprivate
44 {
45 if ( item )
46 {
47 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_DIG;
48 }
49 }

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


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