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

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

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

class  ActionFoldBaseBuildingObjectCB
 

Функции

ActionFoldBaseBuildingObjectCB ActionContinuousBaseCB ActionFoldBaseBuildingObject ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
override string GetAdminLogMessage (ActionData action_data)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
33 {
34 Object targetObject = target.GetObject();
35
36 if ( targetObject.CanUseConstruction() )
37 {
39
40 if ( base_building.CanFoldBaseBuildingObject() )
41 {
42 return true;
43 }
44 }
45
46 return false;
47 }
Definition Fence.c:2
Definition ObjectTyped.c:2
Definition EntityAI.c:95

◆ ActionFoldBaseBuildingObject()

ActionFoldBaseBuildingObjectCB ActionContinuousBaseCB ActionFoldBaseBuildingObject ( )
12 {
13 m_CallbackClass = ActionFoldBaseBuildingObjectCB;
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 = "#fold";
19 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionFoldBaseBuildingObject.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

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

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

◆ CreateConditionComponents()

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

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

◆ GetAdminLogMessage()

override string GetAdminLogMessage ( ActionData action_data)
59 {
60 return " folded " + action_data.m_Target.GetObject().GetDisplayName();
61 }

◆ GetInputType()

override GetInputType ( )
28 {
30 }
Definition ActionInput.c:522

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
50 {
52 BaseBuildingBase base_building = BaseBuildingBase.Cast( action_data.m_Target.GetObject() );
53
54 base_building.CreateConstructionKitInHands(action_data.m_Player);
55 base_building.DestroyConstruction();
56 }
Definition InventoryItem.c:731