DayZ 1.24
Loading...
Searching...
No Matches
ActionCraft Class Reference
Inheritance diagram for ActionCraft:
[legend]
Collaboration diagram for ActionCraft:
[legend]

Private Member Functions

void ActionCraft ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void ApplyModifiers (ActionData action_data)
 
void CancelCraft (PlayerBase player)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Private Attributes

bool m_HasStarted
 
ItemBase m_Item1
 
ItemBase m_Item2
 
int m_RecipeID
 

Detailed Description

Definition at line 9 of file ActionCraft.c.

Constructor & Destructor Documentation

◆ ActionCraft()

void ActionCraft::ActionCraft ( )
inlineprivate

Definition at line 18 of file ActionCraft.c.

19 {
20 m_Sound = "craft_universal_0";
21
23 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
24 m_FullBody = true;
25 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
26
27 m_Text = "#craft";
28 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
EffectSound m_Sound
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, m_FullBody, m_Sound, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

override bool ActionCraft::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 50 of file ActionCraft.c.

51 {
52 /*if( !m_HasStarted )
53 {
54 if ( player.IsCraftingSetUp() )
55 {
56 return true;
57 }
58 return false;
59 }
60 else
61 {
62 return true;
63 }*/
64 }

◆ ApplyModifiers()

override void ActionCraft::ApplyModifiers ( ActionData action_data)
inlineprivate

Definition at line 67 of file ActionCraft.c.

68 {
69 }

◆ CancelCraft()

void ActionCraft::CancelCraft ( PlayerBase player)
inlineprivate

Definition at line 72 of file ActionCraft.c.

73 {
74 //action_data.m_Player.SetCraftingReady(false);
75 //action_data.m_Player.DisableCrafting();
76 }

◆ CreateConditionComponents()

override void ActionCraft::CreateConditionComponents ( )
inlineprivate

Definition at line 30 of file ActionCraft.c.

31 {
34 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

Member Data Documentation

◆ m_HasStarted

bool ActionCraft::m_HasStarted
private

Definition at line 11 of file ActionCraft.c.

◆ m_Item1

ItemBase ActionCraft::m_Item1
private

Definition at line 13 of file ActionCraft.c.

◆ m_Item2

ItemBase ActionCraft::m_Item2
private

Definition at line 14 of file ActionCraft.c.

◆ m_RecipeID

int ActionCraft::m_RecipeID
private

Definition at line 16 of file ActionCraft.c.


The documentation for this class was generated from the following file: