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

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

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

class  ActionDeCraftWitchHoodCoifCB
 

Функции

ActionDeCraftWitchHoodCoifCB ActionContinuousBaseCB ActionDeCraftWitchHoodCoif ()
 
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 )
29 {
30 return true;
31 }

◆ ActionDeCraftWitchHoodCoif()

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

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

◆ CreateActionComponent()

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

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

◆ CreateConditionComponents()

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

◆ HasTarget()

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

◆ OnFinishProgressServer()

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