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

Private Member Functions

void ActionWorldCraftSwitch ()
 
override void CreateConditionComponents ()
 
override bool IsLocal ()
 
override bool IsInstant ()
 
override bool RemoveForceTargetAfterUse ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionWorldCraftSwitch.c.

Constructor & Destructor Documentation

◆ ActionWorldCraftSwitch()

void ActionWorldCraftSwitch::ActionWorldCraftSwitch ( )
inlineprivate

Definition at line 3 of file ActionWorldCraftSwitch.c.

4 {
5 m_Text = "#next_recipe";
6 }
string m_Text
Definition ActionBase.c:49

References m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 29 of file ActionWorldCraftSwitch.c.

30 {
31 if (player.GetCraftingManager().GetRecipesCount() > 1)
32 return true;
33 return false;
34 }

◆ CreateConditionComponents()

override void ActionWorldCraftSwitch::CreateConditionComponents ( )
inlineprivate

Definition at line 8 of file ActionWorldCraftSwitch.c.

9 {
12 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ IsInstant()

override bool ActionWorldCraftSwitch::IsInstant ( )
inlineprivate

Definition at line 19 of file ActionWorldCraftSwitch.c.

20 {
21 return true;
22 }

◆ IsLocal()

override bool ActionWorldCraftSwitch::IsLocal ( )
inlineprivate

Definition at line 14 of file ActionWorldCraftSwitch.c.

15 {
16 return true;
17 }

◆ RemoveForceTargetAfterUse()

override bool ActionWorldCraftSwitch::RemoveForceTargetAfterUse ( )
inlineprivate

Definition at line 24 of file ActionWorldCraftSwitch.c.

25 {
26 return false;
27 }

◆ Start()

override void ActionWorldCraftSwitch::Start ( ActionData action_data)
inlineprivate

Definition at line 36 of file ActionWorldCraftSwitch.c.

37 {
38 super.Start(action_data);
39 action_data.m_Player.GetCraftingManager().SetNextRecipe();
40 }

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