DayZ
1.24
Loading...
Searching...
No Matches
FireConsumable.c
Go to the documentation of this file.
1
class
FireConsumable
2
{
3
ItemBase
m_Item
;
4
float
m_Energy
;
5
float
m_RemainingEnergy
;
6
7
void
FireConsumable
(
ItemBase
item
,
float
energy
)
8
{
9
m_Item
=
item
;
10
m_Energy
=
energy
;
11
m_RemainingEnergy
=
energy
;
12
}
13
14
//Item
15
ItemBase
GetItem
()
16
{
17
return
m_Item
;
18
}
19
20
//Energy
21
float
GetEnergy
()
22
{
23
return
m_Energy
;
24
}
25
26
//Remaining energy
27
float
GetRemainingEnergy
()
28
{
29
return
m_RemainingEnergy
;
30
}
31
32
void
SetRemainingEnergy
(
float
energy
)
33
{
34
m_RemainingEnergy
=
energy
;
35
}
36
}
FireConsumable
Definition
FireConsumable.c:2
FireConsumable::GetRemainingEnergy
float GetRemainingEnergy()
Definition
FireConsumable.c:27
FireConsumable::m_Item
ItemBase m_Item
Definition
FireConsumable.c:3
FireConsumable::GetItem
ItemBase GetItem()
Definition
FireConsumable.c:15
FireConsumable::m_RemainingEnergy
float m_RemainingEnergy
Definition
FireConsumable.c:5
FireConsumable::FireConsumable
void FireConsumable(ItemBase item, float energy)
Definition
FireConsumable.c:7
FireConsumable::m_Energy
float m_Energy
Definition
FireConsumable.c:4
FireConsumable::GetEnergy
float GetEnergy()
Definition
FireConsumable.c:21
FireConsumable::SetRemainingEnergy
void SetRemainingEnergy(float energy)
Definition
FireConsumable.c:32
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
scripts
4_World
Classes
Cooking
FireConsumable.c
Generated by
1.10.0