DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionEatFruit.c
См. документацию.
1
class
ActionEatFruitCB
:
ActionContinuousBaseCB
2
{
3
override
void
CreateActionComponent
()
4
{
5
m_ActionData
.m_ActionComponent =
new
CAContinuousQuantityEdible
(
UAQuantityConsumed
.
EAT_NORMAL
,
UATimeSpent
.
DEFAULT
);
6
}
7
};
8
9
class
ActionEatFruit
:
ActionEatBig
10
{
11
void
ActionEatFruit
()
12
{
13
m_CallbackClass
=
ActionEatFruitCB
;
14
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_EAT;
15
m_CommandUIDProne
=
DayZPlayerConstants
.CMD_ACTIONFB_EAT;
16
}
17
18
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
19
{
20
if
(!super.ActionCondition(player, target, item))
21
return
false
;
22
Edible_Base
food_item;
23
24
if
(
Class
.
CastTo
(food_item, item) )
25
{
26
if
( food_item.
IsFruit
() )
27
return
true
;
28
}
29
30
return
false
;
31
}
32
}
m_CommandUIDProne
int m_CommandUIDProne
Определения
ActionBase.c:32
m_CommandUID
int m_CommandUID
Определения
ActionBase.c:31
ActionTarget
class ActionTargets ActionTarget
ActionBaseCB::m_ActionData
ActionData m_ActionData
Определения
AnimatedActionBase.c:3
ActionContinuousBaseCB
Определения
ActionContinuousBase.c:2
ActionEatBig::ActionEatBig
void ActionEatBig()
Определения
ActionEat.c:11
ActionEatFruit::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionEatFruit.c:18
ActionEatFruit::ActionEatFruit
void ActionEatFruit()
Определения
ActionEatFruit.c:11
ActionEatFruitCB::CreateActionComponent
override void CreateActionComponent()
Определения
ActionEatFruit.c:3
ActionEatFruitCB
Определения
ActionEatFruit.c:2
AnimatedActionBase::m_CallbackClass
m_CallbackClass
Определения
AnimatedActionBase.c:145
CAContinuousQuantityEdible
Определения
CAContinuousQuantityEdible.c:2
Class
Super root of all classes in Enforce script.
Определения
EnScript.c:11
Edible_Base::IsFruit
override bool IsFruit()
Определения
Edible_Base.c:377
Edible_Base
Определения
Edible_Base.c:2
ItemBase
Определения
InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
UAQuantityConsumed::EAT_NORMAL
const float EAT_NORMAL
Определения
ActionConstants.c:8
UAQuantityConsumed
Определения
ActionConstants.c:4
UATimeSpent::DEFAULT
const float DEFAULT
Определения
ActionConstants.c:29
UATimeSpent
Определения
ActionConstants.c:28
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Определения
dayzplayer.c:602
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
ActionEatFruit.c
Создано системой
1.13.2