DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ConstructionMaterials.c
См. документацию.
1
3{
5 bool m_SkipOnRepair = false; //does not require the material to repair
6 bool m_SkipOnDismantle = false; //does not return the material on dismantle
11
12
13 void ConstructionMaterialData(string cfgPath)
14 {
15 Init(cfgPath);
16 }
17
18 protected void Init(string cfgPath)
19 {
20 m_MaterialLockable = false;
23 m_MaterialType = "";
25
26 g_Game.ConfigGetText(cfgPath + " type", m_MaterialType);
27 g_Game.ConfigGetText(cfgPath + " slot_name", 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}
DayZGame g_Game
Определения DayZGame.c:4074
override Widget Init()
Определения DayZGame.c:127
float m_MaterialQuantity
Определения ConstructionMaterials.c:8
void Init(string cfgPath)
Определения ConstructionMaterials.c:18
void ConstructionMaterialData(string cfgPath)
Определения ConstructionMaterials.c:13
string m_MaterialType
Определения ConstructionMaterials.c:9
bool m_MaterialLockable
Определения ConstructionMaterials.c:4
string m_MaterialSlotName
Определения ConstructionMaterials.c:10
const int INVALID
Invalid slot (-1)
Определения InventorySlots.c:17
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
Определения InventorySlots.c:6