28 for (
int j = 0;
j < m_FileContent.Count();
j++)
29 m_CfgParams.Insert(ParseText(m_FileContent.Get(
j)));
36 for (
int i = 0;
i < m_CfgParams.Count(); ++
i)
38 string s = ParseParam(m_CfgParams.Get(
i));
40 m_FileContent.Insert(
s);
50 for (
int i = 0;
i < m_CfgParams.Count(); ++
i)
52 param = m_CfgParams.Get(
i);
60 m_CfgParams.Insert(
param);
76 for (
int i = 0;
i < m_CfgParams.Count(); ++
i)
82 m_CfgParams.Remove(
i);
90 for (
int i = 0;
i < m_CfgParams.Count(); ++
i)
106 for (
int i = 0;
i < m_CfgParams.Count(); ++
i)
108 param = m_CfgParams.Get(
i);
124 switch (
param.GetType())
164 if (
s.IndexOf(
".") == -1)
436 if (
pos_a == a.Count() - 1 &&
pos_b < b.Count() - 1)
const int CFG_TYPE_STRING
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static CfgParam CreateParam(string name, int cfg_type)
string ParseParam(CfgParam param)
int GetTextType(string text)
override string GetFileName()
ref array< ref CfgParam > m_CfgParams
bool IsParam(string text)
CfgParam ParseText(string text)
array< ref CfgParam > GetAllParams()
void RenameParam(string name, string new_name)
float ParseToValueFloat(string param_value)
string ParseToValueString(string param_value)
int ParseToValueInt(string param_value)
void RemoveParamByName(string name)
void PluginConfigHandler()
bool ParamExist(string name)
bool IsString(string text)
bool IsFloat(string text)
CfgParam GetParamByName(string name, int cfg_type)
bool IsArray(string text)
array< ref CfgParam > ParseToValueArray(string param_value)
bool ParseToValueBool(string param_value)
const string CFG_FILE_USER_PROFILE
array< string > TStringArray
const string STRING_EMPTY