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

DEPRECATED. Подробнее...

+ Граф наследования:ActionTakeMaterialToHandsSwitch:

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

void ActionTakeMaterialToHandsSwitch ()
 
override void CreateConditionComponents ()
 
override bool IsInstant ()
 
override bool RemoveForceTargetAfterUse ()
 
override bool UseAcknowledgment ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 

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

DEPRECATED.

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

◆ ActionTakeMaterialToHandsSwitch()

5 {
6 m_Text = "#switch_to_next_material";
7 }
string m_Text
Definition ActionBase.c:58

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
36 {
37 EntityAI target_entity = EntityAI.Cast( target.GetObject() );
38 if ( target_entity && target_entity.CanUseConstruction() )
39 {
41 if(!base_building.IsPlayerInside(player,""))
42 return false;
43
44 ConstructionActionData construction_action_data = player.GetConstructionActionData();
45
46 string main_part_name = target_entity.GetActionComponentName( target.GetComponentIndex() );
47 construction_action_data.RefreshAttachmentsToDetach( target_entity, main_part_name );
48
49 if ( construction_action_data.GetAttachmentsToDetachCount() > 1 )
50 {
51 return true;
52 }
53 }
54
55 return false;
56 }
Definition Fence.c:2
Definition ConstructionActionData.c:2
Definition Building.c:6
Definition EntityAI.c:95

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
10 {
13 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINotPresent.c:2
Definition CCTNonRuined.c:2
Definition ActionConstants.c:106
const float BASEBUILDING
Definition ActionConstants.c:112

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

◆ GetInputType()

override GetInputType ( )
inlineprivate
31 {
33 }
Definition ActionInput.c:535

◆ IsInstant()

override bool IsInstant ( )
inlineprivate
16 {
17 return true;
18 }

◆ RemoveForceTargetAfterUse()

override bool RemoveForceTargetAfterUse ( )
inlineprivate
21 {
22 return false;
23 }

◆ Start()

override void Start ( ActionData action_data)
inlineprivate
59 {
60 super.Start( action_data );
61
62 //set next index
63 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
64 construction_action_data.SetNextAttachmentIndex();
65 }

◆ UseAcknowledgment()

override bool UseAcknowledgment ( )
inlineprivate
26 {
27 return true;
28 }

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