DayZ
1.30
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ConstructionMaterials.c
См. документацию.
1
2
class
ConstructionMaterialData
3
{
4
bool
m_MaterialLockable
;
5
bool
m_SkipOnRepair
=
false
;
//does not require the material to repair
6
bool
m_SkipOnDismantle
=
false
;
//does not return the material on dismantle
7
int
m_MaterialSlotID
;
8
float
m_MaterialQuantity
;
9
string
m_MaterialType
;
10
string
m_MaterialSlotName
;
11
12
13
void
ConstructionMaterialData
(
string
cfgPath)
14
{
15
Init
(cfgPath);
16
}
17
18
protected
void
Init
(
string
cfgPath)
19
{
20
m_MaterialLockable
=
false
;
21
m_MaterialSlotID
=
InventorySlots
.
INVALID
;
22
m_MaterialQuantity
= -1;
23
m_MaterialType
=
""
;
24
m_MaterialSlotName
=
""
;
25
26
g_Game
.ConfigGetText(cfgPath +
" type"
,
m_MaterialType
);
27
g_Game
.ConfigGetText(cfgPath +
" slot_name"
,
m_MaterialSlotName
);
28
m_MaterialSlotID
=
InventorySlots
.
GetSlotIdFromString
(
m_MaterialSlotName
);
29
m_MaterialQuantity
=
g_Game
.ConfigGetFloat(cfgPath +
" quantity"
);
30
m_MaterialLockable
=
g_Game
.ConfigGetInt(cfgPath +
" lockable"
);
31
m_SkipOnRepair
=
g_Game
.ConfigGetInt(cfgPath +
" skipOnRepair"
);
32
m_SkipOnDismantle
=
g_Game
.ConfigGetInt(cfgPath +
" skipOnDismantle"
);
33
}
34
}
g_Game
DayZGame g_Game
Определения
DayZGame.c:4074
Init
override Widget Init()
Определения
DayZGame.c:127
ConstructionMaterialData::m_MaterialSlotID
int m_MaterialSlotID
Определения
ConstructionMaterials.c:7
ConstructionMaterialData::m_MaterialQuantity
float m_MaterialQuantity
Определения
ConstructionMaterials.c:8
ConstructionMaterialData::Init
void Init(string cfgPath)
Определения
ConstructionMaterials.c:18
ConstructionMaterialData::m_SkipOnDismantle
bool m_SkipOnDismantle
Определения
ConstructionMaterials.c:6
ConstructionMaterialData::ConstructionMaterialData
void ConstructionMaterialData(string cfgPath)
Определения
ConstructionMaterials.c:13
ConstructionMaterialData::m_SkipOnRepair
bool m_SkipOnRepair
Определения
ConstructionMaterials.c:5
ConstructionMaterialData::m_MaterialType
string m_MaterialType
Определения
ConstructionMaterials.c:9
ConstructionMaterialData::m_MaterialLockable
bool m_MaterialLockable
Определения
ConstructionMaterials.c:4
ConstructionMaterialData::m_MaterialSlotName
string m_MaterialSlotName
Определения
ConstructionMaterials.c:10
InventorySlots::INVALID
const int INVALID
Invalid slot (-1)
Определения
InventorySlots.c:17
InventorySlots::GetSlotIdFromString
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
InventorySlots
provides access to slot configuration
Определения
InventorySlots.c:6
Ishodniki
scripts
4_World
DayZ
Classes
BaseBuilding
ConstructionMaterials.c
Создано системой
1.13.2