57 {
59 return false;
60
61 string cfg_classname = "cfgLiquidDefinitions";
62 string property_value = "NULL_PROPERTY";
63 int cfg_item_count =
g_Game.ConfigGetChildrenCount(cfg_classname);
64
65 for (int i = 0; i < cfg_item_count; i++)
66 {
67 string liquid_class_name;
69 string liquid_full_path = string.Format("%1 %2",cfg_classname, liquid_class_name);
70 int config_liquid_type =
GetGame().
ConfigGetInt(
string.Format(
"%1 type", liquid_full_path));
71
76
77
80 }
81 return true;
82 }
static ref map< string, ref LiquidInfo > m_LiquidInfosByName
class LiquidInfo m_AllLiquidsByType
static ref map< int, ref LiquidInfo > m_LiquidInfosByType
static NutritionalProfile SetUpNutritionalProfile(int liquid_type, string liquid_class_name)
static ref map< string, ref NutritionalProfile > m_AllLiquidsByName
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto native CGame GetGame()