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

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

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

class  ActionDismantleStoneCircleCB
 

Функции

ActionDismantleStoneCircleCB ActionContinuousBaseCB ActionDismantleStoneCircle ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
39 {
40 Object target_object = target.GetObject();
41
42 if ( target_object && target_object.IsFireplace() )
43 {
45
46 if ( fireplace_target.IsBaseFireplace() && fireplace_target.CanDismantleStoneCircle() )
47 {
48 return true;
49 }
50 }
51
52 return false;
53 }
Definition BarrelHoles_ColorBase.c:2
Definition ObjectTyped.c:2
Definition EntityAI.c:95

◆ ActionDismantleStoneCircle()

ActionDismantleStoneCircleCB ActionContinuousBaseCB ActionDismantleStoneCircle ( )
12 {
13 m_CallbackClass = ActionDismantleStoneCircleCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_HIGH;
18 m_Text = "#dismantle_stonecircle";
19 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionDismantleStoneCircle.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

override void CreateActionComponent ( )
12 {
13 m_CallbackClass = ActionDismantleStoneCircleCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
15 m_FullBody = true;

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
22 {
23
24 m_ConditionTarget = new CCTNonRuined( UAMaxDistances.DEFAULT );
25 m_ConditionItem = new CCINotPresent;
26 }
Definition CCINotPresent.c:2
Definition CCTNonRuined.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT.

◆ GetInputType()

override GetInputType ( )
29 {
31 }
Definition ActionInput.c:522

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
56 {
57 Object target_object = action_data.m_Target.GetObject();
59
60 if ( fireplace_target.CanDismantleStoneCircle() )
61 {
62 ItemBase attached_item = ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
63
64 //set oven state
65 fireplace_target.SetStoneCircleState( false );
66
67 // extend lifetime (but back to default of CE)
68 fireplace_target.SetLifetimeMax( 10800 );
69 }
70 }
Definition InventoryItem.c:731