Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actioneat.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_BIG, UATimeSpent.DEFAULT);
6 }
7};
8
10{
11 void ActionEatBig()
12 {
14 //m_Sound = "EatingSoft_0";
15 m_Text = "#eat";
16 }
17
18 override void CreateConditionComponents()
19 {
22 }
23
24 override int IsEat()
25 {
26 return true;
27 }
28
29 override bool HasTarget()
30 {
31 return false;
32 }
33}
34
35
36//-------------- Action Eat
37class ActionEatCB : ActionEatBigCB
38{
39 override void CreateActionComponent()
40 {
41 m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_NORMAL, UATimeSpent.DEFAULT);
42 }
43};
44
46{
47 void ActionEat()
48 {
49 m_CallbackClass = ActionEatCB;
50 }
51
52
53};
54
55//-------------- Action Eat Small
57{
58 override void CreateActionComponent()
59 {
60 m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.EAT_SMALL, UATimeSpent.DEFAULT);
61 }
62};
63
ActionEat CreateActionComponent
Definition actioneat.c:39
ActionData m_ActionData
string m_Text
Definition actionbase.c:58
ref CCIBase m_ConditionItem
Definition actionbase.c:64
ref CCTBase m_ConditionTarget
Definition actionbase.c:65