DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Init()

void LiquidInfo::Init ( string className)
inlineprotected

См. определение в файле Liquid.c строка 20

21 {
22 string path = "cfgLiquidDefinitions " + className;
23 m_LiquidClassName = className;
24 GetGame().ConfigGetTextRaw(string.Format("%1 displayName", path), m_LiquidDisplayName);
26 m_LiquidType = GetGame().ConfigGetInt(string.Format("%1 type", path));
27 if (GetGame().ConfigIsExisting(string.Format("%1 liquidFreezeThreshold", path)))
28 m_TemperatureLiquidFreezeThreshold = GetGame().ConfigGetFloat(string.Format("%1 liquidFreezeThreshold", path));
29 if (GetGame().ConfigIsExisting(string.Format("%1 liquidThawThreshold", path)))
30 m_TemperatureLiquidThawThreshold = GetGame().ConfigGetFloat(string.Format("%1 liquidThawThreshold", path));
31 if (GetGame().ConfigIsExisting(string.Format("%1 liquidBoilingThreshold", path)))
32 m_TemperatureLiquidBoilThreshold = GetGame().ConfigGetFloat(string.Format("%1 liquidBoilingThreshold", path));
33 m_Flammability = GetGame().ConfigGetFloat(string.Format("%1 flammability", path));
34 }
string path
Определения OptionSelectorMultistate.c:142
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto bool ConfigGetTextRaw(string path, out string value)
Get raw string value from config on path.
bool FormatRawConfigStringKeys(inout string value)
Changes localization key format to script-friendly format.
Определения Game.c:475
proto native int ConfigGetInt(string path)
Get int value from config on path.
float m_TemperatureLiquidFreezeThreshold
Определения Liquid.c:7
float m_TemperatureLiquidBoilThreshold
Определения Liquid.c:9
float m_TemperatureLiquidThawThreshold
Определения Liquid.c:8
float m_Flammability
Определения Liquid.c:10
string m_LiquidClassName
Определения Liquid.c:4
string m_LiquidDisplayName
Определения Liquid.c:5
int m_LiquidType
Определения Liquid.c:6
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetFloat(), CGame::ConfigGetInt(), CGame::ConfigGetTextRaw(), CGame::FormatRawConfigStringKeys(), GetGame(), m_Flammability, m_LiquidClassName, m_LiquidDisplayName, m_LiquidType, m_TemperatureLiquidBoilThreshold, m_TemperatureLiquidFreezeThreshold, m_TemperatureLiquidThawThreshold и path.