80 if (!m_ConfigParamsArrayInArray.Contains(
param_name))
119 for (
i = 0;
i < m_ConfigParams.Count(); ++
i)
126 AddNewLineNoSave(
text);
129 for (
i = 0;
i < m_ConfigParamsArray.Count(); ++
i)
149 AddNewLineNoSave(
text);
152 for (
i = 0;
i < m_ConfigParamsArrayInArray.Count(); ++
i)
185 AddNewLineNoSave(
text);
193 if (
text.Length() > 0 &&
text.Substring(0, 1) ==
"{")
195 if (
text.Substring(
text.Length() - 1, 1) ==
"}")
206 int pos =
text.IndexOf(
"=");
227 if (!IsTextArray(
text))
304 if (m_ConfigParamsArrayInArray.Contains(
param_name))
354 if (m_ConfigParams.Contains(
old_name))
365 if (m_ConfigParamsArray.Contains(
old_name))
376 m_ConfigParams.Remove(
name);
384 m_ConfigParamsArray.Remove(
name);
392 string s =
"\"" +
value +
"\"";
486 if (m_ConfigParamsArray.Contains(
name))
518 if (m_ConfigParamsArrayInArray.Contains(
param_name))
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
TStringArray ParseTextToArray(string text, out TStringArray ret)
array< ref map< string, string > > ParseTextArrayToParameters(string text)
TStringArray LoadParameterArray(string param_name)
void SetParameterString(string name, string value, bool save_in_file=true)
override string GetFileName()
ref map< string, ref array< ref map< string, string > > > m_ConfigParamsArrayInArray
bool IsTextArray(string text)
void SetParameterBool(string name, bool value, bool save_in_file=true)
void SaveParameterArray(string param_name, TStringArray value, bool save_in_file=true)
void SetSubParameterInArray(string param_name, int sub_array_index, string sub_param_name, string sub_param_value, bool save_in_file=true)
bool GetParameterBool(string name)
TStringArray GetAllSubParametersInArrayString(string param_name, string sub_param_name)
float GetParameterFloat(string name)
void RenameParameterArray(string old_name, string new_name, bool save_in_file=true)
TStringArray ParseTextToParameter(string text)
void SaveParameter(string param_name, string value, bool save_in_file=true)
void SetParameterFloat(string name, float value, bool save_in_file=true)
TStringArray GetParameterArray(string name)
ref map< string, string > m_ConfigParams
void RemoveParameterArray(string name, bool save_in_file=true)
void RenameParameter(string old_name, string new_name, bool save_in_file=true)
string LoadParameter(string param_name)
string LoadSubParameter(string param_name, int sub_array_index, string sub_param_name)
void RemoveParameter(string name, bool save_in_file=true)
void SetParameterInt(string name, int value, bool save_in_file=true)
int GetParameterInt(string name)
void SaveSubParameterInArray(string param_name, int sub_array_index, string sub_param_name, string sub_param_value, bool save_in_file=true)
void SetParameterArray(string name, TStringArray value, bool save_in_file=true)
string GetSubParameterInArrayString(string param_name, int sub_array_index, string sub_param_name)
void PluginLocalProfile()
string GetParameterString(string name)
ref map< string, ref TStringArray > m_ConfigParamsArray
ref map< string, ref map< string, string > > m_ConfigParamsInArray
override string GetFileName()
const string CFG_FILE_USER_PROFILE
array< string > TStringArray
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
const string STRING_EMPTY