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

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

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

class  ActionDeCraftDrysackBagCB
 

Функции

ActionDeCraftDrysackBagCB ActionContinuousBaseCB ActionDeCraftDrysackBag ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool HasTarget ()
 
override void OnFinishProgressServer (ActionData action_data)
 

Функции

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
28 {
29 return item.IsEmpty();
30 }
Definition EntityAI.c:95

◆ ActionDeCraftDrysackBag()

12 {
13 m_CallbackClass = ActionDeCraftDrysackBagCB;
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";
19 }
int m_CommandUID
Definition ActionBase.c:31
int m_StanceMask
Definition ActionBase.c:33
Definition ActionDeCraftDrysackBag.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

◆ CreateActionComponent()

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

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

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
22 {
23 m_ConditionItem = new CCINonRuined();
24 m_ConditionTarget = new CCTNone();
25 }
Definition CCINonRuined.c:2
Definition CCTNone.c:2

◆ HasTarget()

override bool HasTarget ( )
33 {
34 return false;
35 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
38 {
39 EntityAI mainItem = action_data.m_MainItem;
40
41 string color = mainItem.ConfigGetString("color");
42 string className = "WaterproofBag_" + color;
43
44 EntityAI result1 = action_data.m_Player.SpawnEntityOnGroundPos(className, action_data.m_Player.GetPosition());
45 EntityAI result2 = action_data.m_Player.SpawnEntityOnGroundPos("Rope", action_data.m_Player.GetPosition());
46
47 if (!result1 || !result2)
48 return;
49
50 MiscGameplayFunctions.TransferItemProperties(mainItem, result1);
51 MiscGameplayFunctions.TransferItemProperties(mainItem, result2);
52
53 action_data.m_MainItem.Delete();
54 }
Definition Building.c:6