Dayz Explorer
1.29.162510
Loading...
Searching...
No Matches
actionworldcraftswitch.c
Go to the documentation of this file.
1
2
class
ActionWorldCraftSwitch: ActionSingleUseBase
3
{
4
void
ActionWorldCraftSwitch()
5
{
6
m_Text
=
"#next_recipe"
;
7
}
8
9
override
void
CreateConditionComponents
()
10
{
11
m_ConditionItem
=
new
CCINone
;
12
m_ConditionTarget
=
new
CCTObject
(
UAMaxDistances
.DEFAULT);
13
}
14
15
override
bool
IsLocal
()
16
{
17
return
true
;
18
}
19
20
override
bool
IsInstant
()
21
{
22
return
true
;
23
}
24
25
override
bool
RemoveForceTargetAfterUse
()
26
{
27
return
false
;
28
}
29
30
override
bool
ActionCondition(
PlayerBase
player, ActionTarget target,
ItemBase
item )
31
{
32
if
( player.GetCraftingManager().GetRecipesCount() > 1 )
33
{
34
return
true
;
35
}
36
return
false
;
37
}
38
39
override
void
Start
(
ActionData
action_data )
//Setup on start of action
40
{
41
super.Start( action_data );
42
action_data.m_Player.GetCraftingManager().SetNextRecipe();
43
}
44
45
};
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionBase::RemoveForceTargetAfterUse
bool RemoveForceTargetAfterUse()
Definition
actionbase.c:279
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::IsInstant
bool IsInstant()
Definition
actionbase.c:268
ActionBase::CreateConditionComponents
void CreateConditionComponents()
Definition
actionbase.c:236
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBase::IsLocal
bool IsLocal()
Definition
actionbase.c:262
CCINone
Definition
ccinone.c:2
CCTObject
Definition
cctobject.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
UAMaxDistances
Definition
actionconstants.c:110
Start
void Start()
Plays all elements this effects consists of.
Definition
effect.c:157
Daten
4_world
classes
useractionscomponent
actions
singleuse
actionworldcraftswitch.c
Generated by
1.16.1