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

Защищенные члены

CfgParamArray GetNewCfgParamArray (array< ref CfgParam > params)
 
CfgParamBool GetNewCfgParamBool (bool value)
 
CfgParamFloat GetNewCfgParamFloat (float value)
 
CfgParamInt GetNewCfgParamInt (int value)
 
CfgParamString GetNewCfgParamString (string value)
 
CfgParamArray SetArray (string key, array< ref CfgParam > params)
 
array< ref CfgParamGetArray (string key)
 
CfgParamBool SetBool (string key, bool value)
 
bool GetBool (string key)
 
CfgParamFloat SetFloat (string key, float value)
 
float GetFloat (string key)
 
CfgParamInt SetInt (string key, int value)
 
int GetInt (string key)
 
CfgParamString SetString (string key, string value)
 
string GetString (string key)
 
void GetSubParametersInStringArray (string setting_name, string sub_param_name, out TStringArray arr)
 
void PluginConfigDebugProfile ()
 
array< ref CfgParamGetDefaultBatchRectParams ()
 
override void OnInit ()
 
override string GetFileName ()
 
override string GetSubFolderName ()
 
bool GetSceneEditorDrawSelection ()
 
void SetSceneEditorDrawSelection (bool value)
 
bool GetSceneEditorLoadPlayerPos ()
 
void SetSceneEditorLoadPlayerPos (bool value)
 
int GetSceneEditorRotationAngle ()
 
void SetSceneEditorRotationAngle (int value)
 
int GetTabSelected ()
 
void SetTabSelected (int value)
 
int GetSpawnLocIndex ()
 
void SetSpawnLocIndex (int value)
 
int GetFilterOrderReversed ()
 
void SetFilterOrderReversed (bool reversed)
 
string GetDefaultPreset ()
 
void SetDefaultPreset (string value)
 
array< ref CfgParamGetBatchSpawnRectangle ()
 
void SetBatchSpawnRectangle (int row, int column, float rowStep, float columnStep)
 
int GetBatchSpawnQuantity ()
 
void SetBatchSpawnQuantity (int value)
 
string GetItemSearch ()
 
void SetItemSearch (string value)
 
float GetSpawnDistance ()
 
void SetSpawnDistance (float value)
 
bool GetLogsEnabled ()
 
void SetLogsEnabled (bool value)
 
bool GetCharacterLevelsVisible ()
 
void SetCharacterLevelsVisible (bool is_visible)
 
void SetItemDebugPos (vector pos)
 
vector GetItemDebugPos ()
 
bool GetCharacterStatsVisible ()
 
void SetCharacterStatsVisible (bool is_visible)
 
bool GetCharacterModifiersVisible ()
 
void SetCharacterModifiersVisible (bool is_visible)
 
bool GetCharacterAgentsVisible ()
 
void SetCharacterAgentsVisible (bool is_visible)
 
bool GetCharacterDebugVisible ()
 
void SetCharacterDebugVisible (bool is_visible)
 
bool GetCharacterStomachVisible ()
 
void SetCharacterStomachVisible (bool is_visible)
 
bool GetFreeCameraCrosshairVisible ()
 
void SetFreeCameraCrosshairVisible (bool is_visible)
 
bool GetVersionVisible ()
 
void SetVersionVisible (bool is_visible)
 
bool GetMergeType ()
 
void SetMergeType (bool is_visible)
 
string GetSoundsetFilter ()
 
void SetSoundsetFilter (string content)
 
bool GetTempVisible ()
 
void SetTempVisible (bool is_visible)
 
bool GetHealthVisible ()
 
void SetHealthVisible (bool is_visible)
 
bool GetShowItemPreview ()
 
void SetShowItemPreview (bool show)
 
int GetConfigClassesFlag ()
 
void SetConfigClassesFlag (int flag)
 
int GetItemCategoryFlag ()
 
void SetItemCategoryFlag (int flag)
 
bool CustomLocationsAdd (string name, vector position)
 
void CustomLocationsRemove (string name)
 
TStringArray GetPresets ()
 
void SetPreset (string preset_name, int index=-1)
 
void RemovePreset (string preset_name)
 
bool GetPresetItems (string preset_name, out TStringArray arr, string param_name="")
 
bool PresetAdd (string preset_name)
 
bool PresetRemove (string preset_name)
 
bool PresetRename (string old_preset_name, string new_preset_name)
 
bool ItemAddToPreset (string preset_name, string item_name)
 
bool ItemRemoveFromPreset (string preset_name, int item_index)
 
bool SwapItem (string preset_name, int item1_index, int item2_index)
 
array< ref CfgParamGetItemParams (string preset_name, int item_index)
 
CfgParam GetItemParam (string preset_name, int item_index, string param_name)
 
float GetItemHealth (string preset_name, int item_index)
 
bool SetItemHealth (string preset_name, int item_index, float health)
 
int GetItemQuantity (string preset_name, int item_index)
 
bool SetItemQuantity (string preset_name, int item_index, int quantity)
 
bool GetItemWithPhysics (string preset_name, int item_index)
 
bool SetItemWithPhysics (string preset_name, int item_index, bool with_physics)
 
void GetLocationsData (out array< ref LocationParams > arr, bool isCustom)
 
CfgParamInt GetNewCfgParamInt (int value)
 
CfgParamInt SetInt (string key, int value)
 
int GetInt (string key)
 
void PluginConfigEmotesProfile ()
 
override string GetFileName ()
 
int GetEmoteSlot1 ()
 
void SetEmoteSlot1 (int emoted_id)
 
int GetEmoteSlot2 ()
 
void SetEmoteSlot2 (int emoted_id)
 
int GetEmoteSlot3 ()
 
void SetEmoteSlot3 (int emoted_id)
 
int GetEmoteSlot4 ()
 
void SetEmoteSlot4 (int emoted_id)
 
int GetEmoteSlot5 ()
 
void SetEmoteSlot5 (int emoted_id)
 
int GetEmoteSlot6 ()
 
void SetEmoteSlot6 (int emoted_id)
 
int GetEmoteSlot7 ()
 
void SetEmoteSlot7 (int emoted_id)
 
int GetEmoteSlot8 ()
 
void SetEmoteSlot8 (int emoted_id)
 
int GetEmoteSlot9 ()
 
void SetEmoteSlot9 (int emoted_id)
 
int GetEmoteSlot10 ()
 
void SetEmoteSlot10 (int emoted_id)
 
int GetEmoteSlot11 ()
 
void SetEmoteSlot11 (int emoted_id)
 
int GetEmoteFromSlot (string slot)
 
override void OnInit ()
 
string GetPathScenes ()
 
override string GetFileName ()
 
void SceneRename (string scene_name, string scene_name_new)
 
void SceneDelete (string scene_name)
 
void SceneDuplicate (string scene_name)
 
TStringArray GetSceneList ()
 
string EncodeInitScript (string script)
 
string DecodeInitScript (string script)
 
void SceneDataSave (SceneData scene)
 
void SaveSceneSettings (SceneData scene)
 
void SaveSceneWeather (SceneData scene)
 
void SaveScenePlayer (SceneData scene)
 
void SaveSceneObjects (SceneData scene)
 
SceneData SceneDataLoad (string scene_name)
 
void LoadSceneSettings (SceneData scene)
 
void LoadSceneWeather (SceneData scene)
 
void LoadScenePlayer (SceneData scene)
 
void LoadSceneObjects (SceneData scene)
 
override void OnInit ()
 
override string GetFileName ()
 
string GetSceneEditorName ()
 
void SetSceneEditorName (string value)
 

Защищенные статические члены

static PluginConfigDebugProfile GetInstance ()
 
static PluginConfigEmotesProfile GetInstance ()
 
static PluginMissionConfig GetInstance ()
 

Защищенные данные

const string SCENE_DRAW_SELECTION = "scene_editor_draw_selection"
 
const string SCENE_LOAD_PLAYER_POS = "scene_editor_load_player_pos"
 
const string SCENE_ROTATION_ANGLE = "scene_editor_rotation_angle"
 
const string ITEM_TAB_SELECTED = "console_TabSelected"
 
const string PRESET_LIST = "console_presets"
 
const string PRESET_DEFAULT = "console_preset_default"
 
const string ITEM_SEARCH = "console_ItemSearch"
 
const string SPAWN_DISTANCE = "console_SpawnDistance"
 
const string CHAR_STATS_VIS = "console_character_stats_visible"
 
const string CHAR_LEVELS_VIS = "console_character_levels_visible"
 
const string CHAR_MODIFIERS_VIS = "console_character_modifiers_visible"
 
const string CHAR_AGENTS_VIS = "console_character_agents_visible"
 
const string CHAR_DEBUG_VIS = "console_character_debug_visible"
 
const string CHAR_STOMACH_VIS = "console_character_stomach_visible"
 
const string FREE_CAMERA_CROSSHAIR = "console_free_camera_crosshair_visible"
 
const string VERSION_VIS = "console_version_visible"
 
const string MERGE_TYPE = "category_merge_type"
 
const string TEMP_VIS = "console_temperature_visible"
 
const string HEALTH_VIS = "console_health_visible"
 
const string SUB_PARAM_ITEM = "item"
 
const string SUB_PARAM_ITEM_NAME = "name"
 
const string SUB_PARAM_ITEM_HEALTH = "health"
 
const string SUB_PARAM_ITEM_QUANTITY = "quantity"
 
const string SUB_PARAM_ITEM_WITH_PHYSICS = "with_physics"
 
const string LOGS_ENABLED = "logs_enabled"
 
const string CONFIG_CLASSES_FLAG = "toggled_config_classes_flag"
 
const string ITEM_CATEGORY_FLAG = "toggled_item_categories_flag"
 
const string ITEM_PREVIEW = "show_item_preview"
 
const string BATCH_RECT = "batch_spawn_rect"
 
const string BATCH_QUANT = "batch_spawn_quantity"
 
const string SOUNDFILTER = "soundset_editbox"
 
const string ITEMDEBUG = "item_debug"
 
const string SPAWN_LOC_INDEX = "spawn_loc_index"
 
const string FILTER_REVERSED = "filter_order_reversed"
 
ref map< string, ref CfgParamm_DefaultValues
 
ref TStringArray m_PresetList
 
const string POSITION_NAME_ROOT = "console_positions_"
 
string FILE_ROOT = "$saves:"
 
const string FILE_ROOT_SCENES = "scenes"
 
const string PARAM_MISSION = "Mission"
 
const string PARAM_TIME = "InitTime"
 
const string PARAM_YEAR = "InitYear"
 
const string PARAM_MONTH = "InitMonth"
 
const string PARAM_DAY = "InitDay"
 
const string PARAM_HOUR = "InitHour"
 
const string PARAM_MINUTE = "InitMinute"
 
const string PARAM_OVERCAST = "WeatherInitOvercast"
 
const string PARAM_RAIN = "WeatherInitRain"
 
const string PARAM_FOG = "WeatherInitFog"
 
const string PARAM_WIND_F = "WeatherInitWindForce"
 
const string PARAM_PLAYER = "Player"
 
const string PARAM_OBJ_COUNT = "SceneObjectsCount"
 
const string PARAM_OBJ_NAME = "SceneObject"
 
const string PARAM_OBJ_ATT = "Att"
 
const string PARAM_OBJ_LNK = "Lnk"
 
const string PARAM_OBJ_TYPE = "type"
 
const string PARAM_OBJ_POS = "position"
 
const string PARAM_OBJ_ROT = "rotation"
 
const string PARAM_OBJ_DMG = "damage"
 
const string PARAM_OBJ_HLT = "health"
 
const string PARAM_OBJ_ISCR = "init_script"
 
TStringArray m_CfgTemplate
 
string m_FileSceneName
 
const string FILE_NAME = "scene_editor.cfg"
 
const string SCENE_EDITOR_SCENE = "scene_load"
 

Подробное описание

Методы

◆ CustomLocationsAdd()

bool CustomLocationsAdd ( string name,
vector position )
inlineprotected
764 {
765 string world = g_Game.GetWorldName();
766 world.ToLower();
767
768 CfgParamString locationName = new CfgParamString(PluginConfigDebugProfileFixed.SUB_PARAM_POS_NAME);
769 locationName.SetValue(name);
770 CfgParamString locationPos = new CfgParamString(PluginConfigDebugProfileFixed.SUB_PARAM_POS_VEC);
771 locationPos.SetValue(position.ToString(false));
772
773 CfgParamArray locationEntry = new CfgParamArray( locationName.GetValue() );
774 locationEntry.InsertValue( locationName );
775 locationEntry.InsertValue( locationPos );
776
779 params.Insert(locationEntry);
781 SaveConfigToFile();
782
783 return true;
784 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame g_Game
Definition DayZGame.c:3815
Definition EntityAI.c:95
CfgParamArray SetArray(string key, array< ref CfgParam > params)
Definition PluginConfigDebugProfile.c:104
const string POSITION_NAME_ROOT
Definition PluginConfigDebugProfile.c:41
array< ref CfgParam > GetArray(string key)
Definition PluginConfigDebugProfile.c:112

Перекрестные ссылки g_Game, name и PluginConfigDebugProfile::PluginConfigDebugProfileFixed().

◆ CustomLocationsRemove()

void CustomLocationsRemove ( string name)
inlineprotected
787 {
788 if (!name)
789 return;
790 string world = g_Game.GetWorldName();
791 world.ToLower();
794
795 for (int i = 0; i < params.Count(); i++)
796 {
797 CfgParamArray param = CfgParamArray.Cast(params.Get(i));
798 array<ref CfgParam> prms = param.GetValues();
799 CfgParamString par = CfgParamString.Cast(prms.Get(0));
800 if (par.GetValue() == name)
801 {
802 params.RemoveOrdered(i);
803 break;
804 }
805 }
806
807 //SetArray(paramName, params);
808 SaveConfigToFile();
809 }

Перекрестные ссылки g_Game и name.

◆ DecodeInitScript()

string DecodeInitScript ( string script)
inlineprotected
144 {
145 script.Replace( "^", "\"" );
146 script.Replace( "$", "\n" );
147 return script;
148 }

◆ EncodeInitScript()

string EncodeInitScript ( string script)
inlineprotected
134 {
135 script.Replace( "\"", "^" );
136 script.Replace( "\n", "$" );
137 return script;
138 }

◆ GetArray()

array< ref CfgParam > GetArray ( string key)
inlineprotected
113 {
114 if ( ParamExist(key) )
115 {
116 CfgParamArray param = CfgParamArray.Cast( GetParamByName( key, CFG_TYPE_ARRAY ) );
117 return param.GetValues();
118 }
119 else
120 {
121 if ( m_DefaultValues.Contains(key) )
122 {
123 CfgParamArray default_param = CfgParamArray.Cast( m_DefaultValues.Get( key ) );
124 return SetArray( key, default_param.GetValues() ).GetValues();
125 }
126 else
127 {
128 return SetArray( key, new array<ref CfgParam> ).GetValues();
129 }
130 }
131 }
const int CFG_TYPE_ARRAY
Definition CfgParam.c:5
ref map< string, ref CfgParam > m_DefaultValues
Definition PluginConfigDebugProfile.c:39

Перекрестные ссылки CFG_TYPE_ARRAY.

◆ GetBatchSpawnQuantity()

int GetBatchSpawnQuantity ( )
inlineprotected
499 {
500 return GetInt( BATCH_QUANT );
501 }
int GetInt()
Definition PluginDayzPlayerDebug.c:66
const string BATCH_QUANT
Definition PluginConfigDebugProfile.c:33

Перекрестные ссылки GetInt().

◆ GetBatchSpawnRectangle()

array< ref CfgParam > GetBatchSpawnRectangle ( )
inlineprotected
469 {
470 return GetArray( BATCH_RECT );
471 }
const string BATCH_RECT
Definition PluginConfigDebugProfile.c:32

◆ GetBool()

bool GetBool ( string key)
inlineprotected
145 {
146 if ( ParamExist(key) )
147 {
148 CfgParamBool param = CfgParamBool.Cast( GetParamByName( key, CFG_TYPE_BOOL ) );
149 return param.GetValue();
150 }
151 else
152 {
153 if ( m_DefaultValues.Contains(key) )
154 {
155 CfgParamBool default_param = CfgParamBool.Cast( m_DefaultValues.Get( key ) );
156 return SetBool( key, default_param.GetValue() ).GetValue();
157 }
158 else
159 {
160 return SetBool( key, false ).GetValue();
161 }
162 }
163 }
const int CFG_TYPE_BOOL
Definition CfgParam.c:4
CfgParamBool SetBool(string key, bool value)
Definition PluginConfigDebugProfile.c:136

Перекрестные ссылки CFG_TYPE_BOOL.

◆ GetCharacterAgentsVisible()

bool GetCharacterAgentsVisible ( )
inlineprotected
606 {
607 return GetBool( CHAR_AGENTS_VIS );
608 }
bool GetBool(string key)
Definition PluginConfigDebugProfile.c:144
const string CHAR_AGENTS_VIS
Definition PluginConfigDebugProfile.c:15

◆ GetCharacterDebugVisible()

bool GetCharacterDebugVisible ( )
inlineprotected
619 {
620 return GetBool( CHAR_DEBUG_VIS );
621 }
const string CHAR_DEBUG_VIS
Definition PluginConfigDebugProfile.c:16

◆ GetCharacterLevelsVisible()

bool GetCharacterLevelsVisible ( )
inlineprotected
550 {
551 return GetBool( CHAR_LEVELS_VIS );
552 }
const string CHAR_LEVELS_VIS
Definition PluginConfigDebugProfile.c:13

◆ GetCharacterModifiersVisible()

bool GetCharacterModifiersVisible ( )
inlineprotected
593 {
594 return GetBool( CHAR_MODIFIERS_VIS );
595 }
const string CHAR_MODIFIERS_VIS
Definition PluginConfigDebugProfile.c:14

◆ GetCharacterStatsVisible()

bool GetCharacterStatsVisible ( )
inlineprotected
579 {
580 return GetBool( CHAR_STATS_VIS );
581 }
const string CHAR_STATS_VIS
Definition PluginConfigDebugProfile.c:12

◆ GetCharacterStomachVisible()

bool GetCharacterStomachVisible ( )
inlineprotected
632 {
633 return GetBool( CHAR_STOMACH_VIS );
634 }
const string CHAR_STOMACH_VIS
Definition PluginConfigDebugProfile.c:17

◆ GetConfigClassesFlag()

int GetConfigClassesFlag ( )
inlineprotected
737 {
738 return GetInt( CONFIG_CLASSES_FLAG );
739 }
const string CONFIG_CLASSES_FLAG
Definition PluginConfigDebugProfile.c:29

Перекрестные ссылки GetInt().

◆ GetDefaultBatchRectParams()

array< ref CfgParam > GetDefaultBatchRectParams ( )
inlineprotected
322 {
324 CfgParamInt param1 = new CfgParamInt("");
325 param1.SetValue(5);
326 CfgParamInt param2 = new CfgParamInt("");
327 param2.SetValue(5);
328 CfgParamFloat param3 = new CfgParamFloat("");
329 param3.SetValue(1.0);
330 CfgParamFloat param4 = new CfgParamFloat("");
331 param4.SetValue(1.0);
332
333 params.Insert(param1);
334 params.Insert(param2);
335 params.Insert(param3);
336 params.Insert(param4);
337
338 return params;
339 }

◆ GetDefaultPreset()

string GetDefaultPreset ( )
inlineprotected
456 {
457 return GetString( PRESET_DEFAULT );
458 }
const string PRESET_DEFAULT
Definition PluginConfigDebugProfile.c:9
string GetString(string key)
Definition PluginConfigDebugProfile.c:243

◆ GetEmoteFromSlot()

int GetEmoteFromSlot ( string slot)
inlineprotected
225 {
226 return GetInt( slot );
227 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot1()

int GetEmoteSlot1 ( )
inlineprotected
105 {
106 return GetInt( EmoteSlots.EMOTE_1.ToString() );
107 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot10()

int GetEmoteSlot10 ( )
inlineprotected
195 {
196 return GetInt( EmoteSlots.EMOTE_10.ToString() );
197 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot11()

int GetEmoteSlot11 ( )
inlineprotected
205 {
206 return GetInt( EmoteSlots.EMOTE_11.ToString() );
207 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot2()

int GetEmoteSlot2 ( )
inlineprotected
115 {
116 return GetInt( EmoteSlots.EMOTE_2.ToString() );
117 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot3()

int GetEmoteSlot3 ( )
inlineprotected
125 {
126 return GetInt( EmoteSlots.EMOTE_3.ToString() );
127 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot4()

int GetEmoteSlot4 ( )
inlineprotected
135 {
136 return GetInt( EmoteSlots.EMOTE_4.ToString() );
137 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot5()

int GetEmoteSlot5 ( )
inlineprotected
145 {
146 return GetInt( EmoteSlots.EMOTE_5.ToString() );
147 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot6()

int GetEmoteSlot6 ( )
inlineprotected
155 {
156 return GetInt( EmoteSlots.EMOTE_6.ToString() );
157 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot7()

int GetEmoteSlot7 ( )
inlineprotected
165 {
166 return GetInt( EmoteSlots.EMOTE_7.ToString() );
167 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot8()

int GetEmoteSlot8 ( )
inlineprotected
175 {
176 return GetInt( EmoteSlots.EMOTE_8.ToString() );
177 }

Перекрестные ссылки GetInt().

◆ GetEmoteSlot9()

int GetEmoteSlot9 ( )
inlineprotected
185 {
186 return GetInt( EmoteSlots.EMOTE_9.ToString() );
187 }

Перекрестные ссылки GetInt().

◆ GetFileName() [1/4]

override string GetFileName ( )
inlineprotected
362 {
363 if (!FileExist(GetSubFolderName()))//---ALL LINES CONTAINING THIS COMMENT CAN BE REMOVED IN 1.23
364 return "$profile:debugProfile.cfg";//---ALL LINES CONTAINING THIS COMMENT CAN BE REMOVED IN 1.23
365
367 }
override string GetSubFolderName()
Definition PluginConfigDebugProfile.c:369
const string CFG_FILE_DEBUG_PROFILE
Definition constants.c:239
proto bool FileExist(string name)
Check existence of file.

Перекрестные ссылки CFG_FILE_DEBUG_PROFILE, FileExist() и GetSubFolderName().

◆ GetFileName() [2/4]

override string GetFileName ( )
inlineprotected
97 {
99 }
const string CFG_FILE_EMOTES_PROFILE
Definition constants.c:240

Перекрестные ссылки CFG_FILE_EMOTES_PROFILE.

◆ GetFileName() [3/4]

override string GetFileName ( )
inlineprotected
55 {
56 return GetPathScenes()+"\\"+m_FileSceneName;
57 }
string GetPathScenes()
Definition PluginConfigScene.c:46
string m_FileSceneName
Definition PluginConfigScene.c:31

◆ GetFileName() [4/4]

override string GetFileName ( )
inlineprotected
34 {
35 return g_Game.GetMissionFolderPath() +"\\"+ FILE_NAME;
36 }
const string FILE_NAME
Definition PluginMissionConfig.c:3

Перекрестные ссылки g_Game.

◆ GetFilterOrderReversed()

int GetFilterOrderReversed ( )
inlineprotected
443 {
444 return GetBool( FILTER_REVERSED );
445 }
const string FILTER_REVERSED
Definition PluginConfigDebugProfile.c:37

◆ GetFloat()

float GetFloat ( string key)
inlineprotected
177 {
178 if ( ParamExist(key) )
179 {
180 CfgParamFloat param = CfgParamFloat.Cast( GetParamByName( key, CFG_TYPE_FLOAT ) );
181 return param.GetValue();
182 }
183 else
184 {
185 if ( m_DefaultValues.Contains(key) )
186 {
187 CfgParamFloat default_param = CfgParamFloat.Cast( m_DefaultValues.Get( key ) );
188 return SetFloat( key, default_param.GetValue() ).GetValue();
189 }
190 else
191 {
192 return SetFloat( key, 0.0 ).GetValue();
193 }
194 }
195 }
const int CFG_TYPE_FLOAT
Definition CfgParam.c:3
CfgParamFloat SetFloat(string key, float value)
Definition PluginConfigDebugProfile.c:168

Перекрестные ссылки CFG_TYPE_FLOAT.

◆ GetFreeCameraCrosshairVisible()

bool GetFreeCameraCrosshairVisible ( )
inlineprotected
645 {
647 }
const string FREE_CAMERA_CROSSHAIR
Definition PluginConfigDebugProfile.c:18

◆ GetHealthVisible()

bool GetHealthVisible ( )
inlineprotected
710 {
711 return GetBool( HEALTH_VIS );
712 }
const string HEALTH_VIS
Definition PluginConfigDebugProfile.c:22

◆ GetInstance() [1/3]

static PluginConfigDebugProfile GetInstance ( )
inlinestaticprotected
47 {
49 }
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316
Definition PluginConfigDebugProfileFixed.c:2

Перекрестные ссылки GetPlugin().

◆ GetInstance() [2/3]

static PluginConfigEmotesProfile GetInstance ( )
inlinestaticprotected
23 {
25 }
void PluginConfigEmotesProfile()
Definition PluginConfigEmotesProfile.c:73

Перекрестные ссылки GetPlugin().

◆ GetInstance() [3/3]

static PluginMissionConfig GetInstance ( )
inlinestaticprotected
10 {
12 }

Перекрестные ссылки GetPlugin().

◆ GetInt() [1/2]

int GetInt ( string key)
inlineprotected
209 {
210 if ( ParamExist(key) )
211 {
212 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key, CFG_TYPE_INT ) );
213 return param.GetValue();
214 }
215 else
216 {
217 if ( m_DefaultValues.Contains(key) )
218 {
219 CfgParamInt default_param = CfgParamInt.Cast( m_DefaultValues.Get( key ) );
220 return SetInt( key, default_param.GetValue() ).GetValue();
221 }
222 else
223 {
224 return SetInt( key, 0 ).GetValue();
225 }
226 }
227 }
const int CFG_TYPE_INT
Definition CfgParam.c:2
CfgParamInt SetInt(string key, int value)
Definition PluginConfigDebugProfile.c:200

Перекрестные ссылки CFG_TYPE_INT.

◆ GetInt() [2/2]

int GetInt ( string key)
inlineprotected
50 {
51 if ( ParamExist(key) )
52 {
53 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key, CFG_TYPE_INT ) );
54 return param.GetValue();
55 }
56 else
57 {
58 if ( m_DefaultValues.Contains(key) )
59 {
60 CfgParamInt default_param = CfgParamInt.Cast( m_DefaultValues.Get( key ) );
61 return SetInt( key, default_param.GetValue() ).GetValue();
62 }
63 else
64 {
65 return SetInt( key, 0 ).GetValue();
66 }
67 }
68 }

Перекрестные ссылки CFG_TYPE_INT и SetInt().

◆ GetItemCategoryFlag()

int GetItemCategoryFlag ( )
inlineprotected
751 {
752 return GetInt( ITEM_CATEGORY_FLAG );
753 }
const string ITEM_CATEGORY_FLAG
Definition PluginConfigDebugProfile.c:30

Перекрестные ссылки GetInt().

◆ GetItemDebugPos()

vector GetItemDebugPos ( )
inlineprotected
571 {
572 return GetString( ITEMDEBUG ).ToVector();
573 }
const string ITEMDEBUG
Definition PluginConfigDebugProfile.c:35
proto vector ToVector()
Returns a vector from a string.

◆ GetItemHealth()

float GetItemHealth ( string preset_name,
int item_index )
inlineprotected
1013 {
1015
1016 if ( param == NULL )
1017 {
1018 return -1;
1019 }
1020 else
1021 {
1022 CfgParamFloat param_float = CfgParamFloat.Cast( param );
1023 return param_float.GetValue();
1024 }
1025 }
Definition CfgParam.c:9
CfgParam GetItemParam(string preset_name, int item_index, string param_name)
Definition PluginConfigDebugProfile.c:991
const string SUB_PARAM_ITEM_HEALTH
Definition PluginConfigDebugProfile.c:25

◆ GetItemParam()

CfgParam GetItemParam ( string preset_name,
int item_index,
string param_name )
inlineprotected
992 {
994
995 if ( item_params == NULL )
996 {
997 return NULL;
998 }
999
1001 for ( int i = 0; i < item_params.Count(); i++ )
1002 {
1003 if ( item_params.Get(i).GetName() == param_name )
1004 {
1005 param = item_params.Get(i);
1006 }
1007 }
1008
1009 return param;
1010 }
array< ref CfgParam > GetItemParams(string preset_name, int item_index)
Definition PluginConfigDebugProfile.c:970

◆ GetItemParams()

array< ref CfgParam > GetItemParams ( string preset_name,
int item_index )
inlineprotected
971 {
972 if ( m_PresetList.Find( preset_name ) == -1 )
973 {
974 return NULL;
975 }
976
978
979 if ( !params || item_index >= params.Count() )
980 {
981 return NULL;
982 }
983 if (params.IsValidIndex(item_index))
984 CfgParamArray params_array = CfgParamArray.Cast( params.Get( item_index ) );
985 if (params_array)
986 return params_array.GetValues();
987
988 return null;
989 }
ref TStringArray m_PresetList
Definition PluginConfigDebugProfile.c:40

◆ GetItemQuantity()

int GetItemQuantity ( string preset_name,
int item_index )
inlineprotected
1054 {
1056
1057 if ( param == NULL )
1058 {
1059 return 1;
1060 }
1061 else
1062 {
1063 CfgParamInt param_int = CfgParamInt.Cast( param );
1064 return param_int.GetValue();
1065 }
1066 }
const string SUB_PARAM_ITEM_QUANTITY
Definition PluginConfigDebugProfile.c:26

◆ GetItemSearch()

string GetItemSearch ( )
inlineprotected
511 {
512 return GetString( ITEM_SEARCH );
513 }
const string ITEM_SEARCH
Definition PluginConfigDebugProfile.c:10

◆ GetItemWithPhysics()

bool GetItemWithPhysics ( string preset_name,
int item_index )
inlineprotected
1095 {
1097
1098 if ( param == NULL )
1099 {
1100 return false;
1101 }
1102 else
1103 {
1104 CfgParamBool param_bool = CfgParamBool.Cast( param );
1105 return param_bool.GetValue();
1106 }
1107 }
const string SUB_PARAM_ITEM_WITH_PHYSICS
Definition PluginConfigDebugProfile.c:27

◆ GetLocationsData()

void GetLocationsData ( out array< ref LocationParams > arr,
bool isCustom )
inlineprotected
1140 {
1141 string world = g_Game.GetWorldName();
1142 world.ToLower();
1144
1146 GetSubParametersInStringArray( paramName, PluginConfigDebugProfileFixed.SUB_PARAM_POS_NAME, names );
1148 GetSubParametersInStringArray( paramName, PluginConfigDebugProfileFixed.SUB_PARAM_POS_VEC, positions );
1149 int i;
1150 if (isCustom)
1151 {
1152 for ( i = names.Count() - 1; i >= 0 ; i--)
1153 {
1154 arr.Insert(new LocationParams(names.Get(i), isCustom, positions.Get(i).ToVector()));
1155 }
1156 }
1157 else
1158 {
1159 for (i = 0; i < names.Count(); i++)
1160 {
1161 arr.Insert(new LocationParams(names.Get(i), isCustom, positions.Get(i).ToVector()));
1162 }
1163 }
1164 }
Param3< string, bool, vector > LocationParams
Definition PluginConfigDebugProfile.c:1
void GetSubParametersInStringArray(string setting_name, string sub_param_name, out TStringArray arr)
Definition PluginConfigDebugProfile.c:268
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
array< string > TStringArray
Definition EnScript.c:685

Перекрестные ссылки g_Game и PluginConfigDebugProfile::PluginConfigDebugProfileFixed().

◆ GetLogsEnabled()

bool GetLogsEnabled ( )
inlineprotected
537 {
538 return GetBool( LOGS_ENABLED );
539 }
const string LOGS_ENABLED
Definition PluginConfigDebugProfile.c:28

◆ GetMergeType()

bool GetMergeType ( )
inlineprotected
671 {
672 return GetBool( MERGE_TYPE );
673 }
const string MERGE_TYPE
Definition PluginConfigDebugProfile.c:20

◆ GetNewCfgParamArray()

CfgParamArray GetNewCfgParamArray ( array< ref CfgParam > params)
inlineprotected
55 {
56 CfgParamArray param = new CfgParamArray( "" );
57 param.SetParams( params );
58 return param;
59 }

◆ GetNewCfgParamBool()

CfgParamBool GetNewCfgParamBool ( bool value)
inlineprotected
65 {
66 CfgParamBool param = new CfgParamBool( "" );
67 param.SetValue( value );
68 return param;
69 }

◆ GetNewCfgParamFloat()

CfgParamFloat GetNewCfgParamFloat ( float value)
inlineprotected
75 {
76 CfgParamFloat param = new CfgParamFloat( "" );
77 param.SetValue( value );
78 return param;
79 }

◆ GetNewCfgParamInt() [1/2]

CfgParamInt GetNewCfgParamInt ( int value)
inlineprotected
85 {
86 CfgParamInt param = new CfgParamInt( "" );
87 param.SetValue( value );
88 return param;
89 }

◆ GetNewCfgParamInt() [2/2]

CfgParamInt GetNewCfgParamInt ( int value)
inlineprotected
32 {
33 CfgParamInt param = new CfgParamInt( "" );
34 param.SetValue( value );
35 return param;
36 }

◆ GetNewCfgParamString()

CfgParamString GetNewCfgParamString ( string value)
inlineprotected
95 {
96 CfgParamString param = new CfgParamString( "" );
97 param.SetValue( value );
98 return param;
99 }

◆ GetPathScenes()

string GetPathScenes ( )
inlineprotected
47 {
48 return FILE_ROOT+"\\"+FILE_ROOT_SCENES;
49 }
const string FILE_ROOT_SCENES
Definition PluginConfigScene.c:4
string FILE_ROOT
Definition PluginConfigScene.c:3

◆ GetPresetItems()

bool GetPresetItems ( string preset_name,
out TStringArray arr,
string param_name = "" )
inlineprotected
857 {
858 if ( m_PresetList.Find(preset_name) == -1 )
859 {
860 return false;
861 }
862 if(param_name == "")
865
866 return true;
867 }
const string SUB_PARAM_ITEM_NAME
Definition PluginConfigDebugProfile.c:24

◆ GetPresets()

TStringArray GetPresets ( )
inlineprotected
815 {
816 return m_PresetList;
817 }

◆ GetSceneEditorDrawSelection()

bool GetSceneEditorDrawSelection ( )
inlineprotected
378 {
380 }
const string SCENE_DRAW_SELECTION
Definition PluginConfigDebugProfile.c:4

◆ GetSceneEditorLoadPlayerPos()

bool GetSceneEditorLoadPlayerPos ( )
inlineprotected
391 {
393 }
const string SCENE_LOAD_PLAYER_POS
Definition PluginConfigDebugProfile.c:5

◆ GetSceneEditorName()

string GetSceneEditorName ( )
inlineprotected
42 {
43 CfgParamString cfg_scene_name = CfgParamString.Cast( GetParamByName( SCENE_EDITOR_SCENE, CFG_TYPE_STRING ) );
44
45 if ( cfg_scene_name.GetValue() == STRING_EMPTY )
46 {
47 cfg_scene_name.SetValue( PluginSceneManager.SCENE_DEFAULT_NAME );
48 SaveConfigToFile();
49 }
50
51 return cfg_scene_name.GetValue();
52 }
const int CFG_TYPE_STRING
Definition CfgParam.c:1
const string SCENE_EDITOR_SCENE
Definition PluginMissionConfig.c:4
const string STRING_EMPTY
Definition constants.c:54

Перекрестные ссылки CFG_TYPE_STRING и STRING_EMPTY.

◆ GetSceneEditorRotationAngle()

int GetSceneEditorRotationAngle ( )
inlineprotected
404 {
406 }
const string SCENE_ROTATION_ANGLE
Definition PluginConfigDebugProfile.c:6

Перекрестные ссылки GetInt().

◆ GetSceneList()

TStringArray GetSceneList ( )
inlineprotected
100 {
101 if ( !FileExist( GetPathScenes() ) )
102 {
104 }
105
106 string file_name;
107 int file_attr;
108 int flags;
110
111 string path_find_pattern = GetPathScenes()+"/*."+PluginSceneManager.SCENE_SUFIX; //*/
113
114 bool found = true;
115 while ( found )
116 {
117 int pos = file_name.IndexOf(".");
118
119 if ( pos > -1 )
120 {
121 list.Insert( file_name.Substring(0, pos) );
122 }
123
125 }
126
127 return list;
128 }
proto native bool MakeDirectory(string name)
Makes a directory.
enum FindFileFlags FindFile(string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags)
proto bool FindNextFile(FindFileHandle handle, out string fileName, out FileAttr fileAttributes)

Перекрестные ссылки FileExist(), FindFile(), FindNextFile() и MakeDirectory().

◆ GetShowItemPreview()

bool GetShowItemPreview ( )
inlineprotected
723 {
724 return GetBool( ITEM_PREVIEW );
725 }
const string ITEM_PREVIEW
Definition PluginConfigDebugProfile.c:31

◆ GetSoundsetFilter()

string GetSoundsetFilter ( )
inlineprotected
684 {
685 return GetString( SOUNDFILTER );
686 }
const string SOUNDFILTER
Definition PluginConfigDebugProfile.c:34

◆ GetSpawnDistance()

float GetSpawnDistance ( )
inlineprotected
524 {
525 return GetFloat( SPAWN_DISTANCE );
526 }
const string SPAWN_DISTANCE
Definition PluginConfigDebugProfile.c:11
float GetFloat(string key)
Definition PluginConfigDebugProfile.c:176

◆ GetSpawnLocIndex()

int GetSpawnLocIndex ( )
inlineprotected
430 {
431 return GetInt( SPAWN_LOC_INDEX );
432 }
const string SPAWN_LOC_INDEX
Definition PluginConfigDebugProfile.c:36

Перекрестные ссылки GetInt().

◆ GetString()

string GetString ( string key)
inlineprotected
244 {
245 CfgParamString param = CfgParamString.Cast( GetParamByName( key, CFG_TYPE_STRING ) );
246
247 if ( param && param.GetValue() != STRING_EMPTY )
248 {
249 return param.GetValue();
250 }
251 else
252 {
253 if ( m_DefaultValues.Contains(key) )
254 {
255 CfgParamString default_param = CfgParamString.Cast( m_DefaultValues.Get( key ) );
256 CfgParamString param_string = SetString( key, default_param.GetValue() );
257 if(param_string)
258 return param_string.GetValue();
259 }
260 else
261 {
262 return SetString( key, "" ).GetValue();
263 }
264 }
265 return "";
266 }
CfgParamString SetString(string key, string value)
Definition PluginConfigDebugProfile.c:232

Перекрестные ссылки CFG_TYPE_STRING и STRING_EMPTY.

◆ GetSubFolderName()

override string GetSubFolderName ( )
inlineprotected
370 {
371 return CFG_FILE_DEBUG_DIR;
372 }
const string CFG_FILE_DEBUG_DIR
Definition constants.c:246

Перекрестные ссылки CFG_FILE_DEBUG_DIR.

◆ GetSubParametersInStringArray()

void GetSubParametersInStringArray ( string setting_name,
string sub_param_name,
out TStringArray arr )
inlineprotected
269 {
271 for ( int i = 0; i < items.Count(); i++ )
272 {
273 CfgParamArray items_array = CfgParamArray.Cast( items.Get(i) );
275
276 for ( int j = 0; j < item_params.Count(); j++ )
277 {
278 if ( item_params.Get(j).GetName() == sub_param_name )
279 {
280 CfgParamString param_string = CfgParamString.Cast( item_params.Get( j ) );
281 arr.Insert( param_string.GetValue() );
282 }
283 }
284 }
285 }

◆ GetTabSelected()

int GetTabSelected ( )
inlineprotected
417 {
418 return GetInt( ITEM_TAB_SELECTED );
419 }
const string ITEM_TAB_SELECTED
Definition PluginConfigDebugProfile.c:7

Перекрестные ссылки GetInt().

◆ GetTempVisible()

bool GetTempVisible ( )
inlineprotected
697 {
698 return GetBool( TEMP_VIS );
699 }
const string TEMP_VIS
Definition PluginConfigDebugProfile.c:21

◆ GetVersionVisible()

bool GetVersionVisible ( )
inlineprotected
658 {
659 return GetBool( VERSION_VIS );
660 }
const string VERSION_VIS
Definition PluginConfigDebugProfile.c:19

◆ ItemAddToPreset()

bool ItemAddToPreset ( string preset_name,
string item_name )
inlineprotected
914 {
915 if ( m_PresetList.Find( preset_name ) == -1 )
916 {
917 return false;
918 }
919
920 CfgParamString param = new CfgParamString( SUB_PARAM_ITEM_NAME );
921 param.SetValue( item_name );
922
923 CfgParamArray item_params = new CfgParamArray( SUB_PARAM_ITEM );
924 item_params.InsertValue( param );
925
927 params.Insert( item_params );
928
929 SaveConfigToFile();
930
931 return true;
932 }
const string SUB_PARAM_ITEM
Definition PluginConfigDebugProfile.c:23

◆ ItemRemoveFromPreset()

bool ItemRemoveFromPreset ( string preset_name,
int item_index )
inlineprotected
935 {
936 if ( m_PresetList.Find( preset_name ) == -1 )
937 {
938 return false;
939 }
940
942
943 if ( item_index >= params.Count() )
944 {
945 return false;
946 }
947
948 params.Remove( item_index );
949
950 SaveConfigToFile();
951
952 return true;
953 }

◆ LoadSceneObjects()

void LoadSceneObjects ( SceneData scene)
inlineprotected
556 {
557 CfgParamInt cfg_obj_count = CfgParamInt.Cast( GetParamByName(PARAM_OBJ_COUNT, CFG_TYPE_INT) );
558 int obj_count = cfg_obj_count.GetValue();
559
560 for ( int i = 0; i < obj_count; ++i )
561 {
562 string param_name = PARAM_OBJ_NAME+"_"+i.ToString();
563
564 // Load scene object name
565 CfgParamArray cfg_obj = CfgParamArray.Cast( GetParamByName(param_name, CFG_TYPE_ARRAY) );
566
567 CfgParamString cfg_obj_type = CfgParamString.Cast( cfg_obj.GetValueByName(PARAM_OBJ_TYPE, CFG_TYPE_STRING) );
568 CfgParamString cfg_obj_pos = CfgParamString.Cast( cfg_obj.GetValueByName(PARAM_OBJ_POS, CFG_TYPE_STRING) );
569 CfgParamFloat cfg_obj_rot = CfgParamFloat.Cast( cfg_obj.GetValueByName(PARAM_OBJ_ROT, CFG_TYPE_FLOAT) );
570 CfgParamFloat cfg_obj_hlt = CfgParamFloat.Cast( cfg_obj.GetValueByName(PARAM_OBJ_HLT, CFG_TYPE_FLOAT) );
571 CfgParamString cfg_obj_iscr = CfgParamString.Cast( cfg_obj.GetValueByName(PARAM_OBJ_ISCR, CFG_TYPE_STRING) );
572
573//PrintString(itoa(i)+ " Loading param_name: "+ param_name+ " => object type: "+ cfg_obj_type.GetValue());
574
575 // Create Scene Object + position
576 SceneObject scn_obj = scene.CreateSceneObject(cfg_obj_type.GetValue(), cfg_obj_pos.GetValue().ToVector());
577
578 // Setup rotation
579 scn_obj.SetRotation(cfg_obj_rot.GetValue());
580 // Setup health
581 scn_obj.SetHealth(cfg_obj_hlt.GetValue());
582 // Setup init script
583 scn_obj.SetInitScript( DecodeInitScript(cfg_obj_iscr.GetValue()) );
584
585 // Setup indices for linked objects
586 CfgParamArray cfg_obj_param_links = CfgParamArray.Cast( GetParamByName(param_name + "_" + PARAM_OBJ_LNK, CFG_TYPE_ARRAY) );
588
589 for ( int lnko = 0; lnko < cfg_obj_links.Count(); lnko++ )
590 {
591 CfgParamInt cfg_obj_param_lnk_int = CfgParamInt.Cast( cfg_obj_links.Get(lnko) );
592 scn_obj.m_LinkedSceneObjectsIndices.Insert( cfg_obj_param_lnk_int.GetValue() );
593 }
594
596
597 if ( ParamExist(param_name_att) )
598 {
599 CfgParamArray cfg_param_att = CfgParamArray.Cast( GetParamByName(param_name_att, CFG_TYPE_ARRAY) );
600
602
603 for ( int j = 0; j < cfg_param_attachments.Count(); ++j )
604 {
605 CfgParamString cfg_param_att_str = CfgParamString.Cast( cfg_param_attachments.Get(j) );
606 scn_obj.GetObject().GetInventory().CreateAttachment( cfg_param_att_str.GetValue() );
607 }
608 }
609 }
610 }
string DecodeInitScript(string script)
Definition PluginConfigScene.c:143
const string PARAM_OBJ_NAME
Definition PluginConfigScene.c:19
const string PARAM_OBJ_COUNT
Definition PluginConfigScene.c:18
const string PARAM_OBJ_LNK
Definition PluginConfigScene.c:21
const string PARAM_OBJ_ATT
Definition PluginConfigScene.c:20
const string PARAM_OBJ_POS
Definition PluginConfigScene.c:23
const string PARAM_OBJ_HLT
Definition PluginConfigScene.c:26
const string PARAM_OBJ_TYPE
Definition PluginConfigScene.c:22
const string PARAM_OBJ_ROT
Definition PluginConfigScene.c:24
const string PARAM_OBJ_ISCR
Definition PluginConfigScene.c:27
Definition SceneObject.c:2

Перекрестные ссылки CFG_TYPE_ARRAY, CFG_TYPE_FLOAT, CFG_TYPE_INT и CFG_TYPE_STRING.

◆ LoadScenePlayer()

void LoadScenePlayer ( SceneData scene)
inlineprotected
510 {
511 // Only in local game (without server, (GetGame.GetPlayer is null on server! -> by design)
512 if ( GetGame().GetPlayer() != NULL )
513 {
514 CfgParamArray cfg_player = CfgParamArray.Cast( GetParamByName(PARAM_PLAYER, CFG_TYPE_ARRAY) );
515 CfgParamString cfg_ply_pos = CfgParamString.Cast( cfg_player.GetValueByName(PARAM_OBJ_POS, CFG_TYPE_STRING) );
516 CfgParamFloat cfg_ply_rot = CfgParamFloat.Cast( cfg_player.GetValueByName(PARAM_OBJ_ROT, CFG_TYPE_FLOAT) );
517 CfgParamFloat cfg_ply_hlt = CfgParamFloat.Cast( cfg_player.GetValueByName(PARAM_OBJ_HLT, CFG_TYPE_FLOAT) );
518 CfgParamString cfg_ply_iscr = CfgParamString.Cast( cfg_player.GetValueByName(PARAM_OBJ_ISCR, CFG_TYPE_STRING) );
519
520 ScenePlayer scn_player = scene.CreateScenePlayer();
521 scn_player.LinkEntityAI(GetGame().GetPlayer());
522
523 if ( PluginSceneManager.GetInstance().GetLoadPlayerPos() )
524 {
525 // start scene position
526 vector start_pos = cfg_ply_pos.GetValue().ToVector();
527
528 if ( start_pos != vector.Zero )
529 {
530 // Set Position
531 scn_player.SetPosition(cfg_ply_pos.GetValue().ToVector());
532
533 // Set Rotation
534 scn_player.SetRotation(cfg_ply_rot.GetValue());
535 }
536 }
537
538 // Set Health
539 // Health check. Do not spawn player character as dead. He can still be spawned as injured.
540 float health2 = cfg_ply_hlt.GetValue();
541 if (health2 <= 0)
542 health2 = scn_player.GetMaxHealth();
543
544 scn_player.SetHealth(health2);
545
546 // Exe Script
547 scn_player.SetInitScript( DecodeInitScript(cfg_ply_iscr.GetValue()) );
548 }
549//PrintString("LoadScenePlayer.. Finished");
550 }
PlayerBase GetPlayer()
Definition ModifierBase.c:51
const string PARAM_PLAYER
Definition PluginConfigScene.c:17
Definition EnConvert.c:106
static const vector Zero
Definition EnConvert.c:110
proto native CGame GetGame()

Перекрестные ссылки CFG_TYPE_ARRAY, CFG_TYPE_FLOAT, CFG_TYPE_STRING, GetGame(), GetPlayer() и vector::Zero.

◆ LoadSceneSettings()

void LoadSceneSettings ( SceneData scene)
inlineprotected
404 {
405 // Load Mission Name
406 CfgParamString cfg_mission = CfgParamString.Cast( GetParamByName(PARAM_MISSION, CFG_TYPE_STRING) );
407 scene.SetNameMission(cfg_mission.GetValue());
408
409 // Load Time
410 CfgParamFloat cfg_time = CfgParamFloat.Cast( GetParamByName(PARAM_TIME, CFG_TYPE_FLOAT) );
411 scene.SetInitTime(cfg_time.GetValue());
412
413 int year, month, day, hour, minute;
414 GetGame().GetWorld().GetDate( year, month, day, hour, minute );
415
416 // Load Year
417 if ( ParamExist(PARAM_YEAR) )
418 {
419 CfgParamInt cfg_year = CfgParamInt.Cast( GetParamByName( PARAM_YEAR, CFG_TYPE_INT ) );
420 scene.SetInitYear( cfg_year.GetValue() );
421 }
422 else
423 {
424 scene.SetInitYear( year );
425 }
426
427 // Load Month
428 if ( ParamExist(PARAM_MONTH) )
429 {
430 CfgParamInt cfg_month = CfgParamInt.Cast( GetParamByName( PARAM_MONTH, CFG_TYPE_INT ) );
431 scene.SetInitMonth( cfg_month.GetValue() );
432 }
433 else
434 {
435 scene.SetInitMonth( month );
436 }
437
438 // Load Day
439 if ( ParamExist(PARAM_DAY) )
440 {
441 CfgParamInt cfg_day = CfgParamInt.Cast( GetParamByName( PARAM_DAY, CFG_TYPE_INT ) );
442 scene.SetInitDay( cfg_day.GetValue() );
443 }
444 else
445 {
446 scene.SetInitDay( day );
447 }
448
449 // Load Hour
450 if ( ParamExist(PARAM_HOUR) )
451 {
452 CfgParamInt cfg_hour = CfgParamInt.Cast( GetParamByName( PARAM_HOUR, CFG_TYPE_INT ) );
453 scene.SetInitHour( cfg_hour.GetValue() );
454 }
455 else
456 {
457 scene.SetInitHour( hour );
458 }
459
460 // Load Minute
461 if ( ParamExist(PARAM_MINUTE) )
462 {
463 CfgParamInt cfg_minute = CfgParamInt.Cast( GetParamByName( PARAM_MINUTE, CFG_TYPE_INT ) );
464 scene.SetInitMinute( cfg_minute.GetValue() );
465 }
466 else
467 {
468 scene.SetInitMinute( minute );
469 }
470 }
const string PARAM_MISSION
Definition PluginConfigScene.c:6
const string PARAM_DAY
Definition PluginConfigScene.c:10
const string PARAM_MONTH
Definition PluginConfigScene.c:9
const string PARAM_YEAR
Definition PluginConfigScene.c:8
const string PARAM_TIME
Definition PluginConfigScene.c:7
const string PARAM_MINUTE
Definition PluginConfigScene.c:12
const string PARAM_HOUR
Definition PluginConfigScene.c:11

Перекрестные ссылки CFG_TYPE_FLOAT, CFG_TYPE_INT, CFG_TYPE_STRING и GetGame().

◆ LoadSceneWeather()

void LoadSceneWeather ( SceneData scene)
inlineprotected
476 {
477 //Load Weather Overcast
478 if ( ParamExist(PARAM_OVERCAST) )
479 {
480 CfgParamFloat cfg_overcast = CfgParamFloat.Cast( GetParamByName(PARAM_OVERCAST, CFG_TYPE_FLOAT) );
481 scene.SetInitOvercast(cfg_overcast.GetValue());
482 }
483
484 //Load Weather Rain
485 if ( ParamExist(PARAM_RAIN) )
486 {
487 CfgParamFloat cfg_rain = CfgParamFloat.Cast( GetParamByName(PARAM_RAIN, CFG_TYPE_FLOAT) );
488 scene.SetInitRain(cfg_rain.GetValue());
489 }
490
491 //Load Weather Fog
492 if ( ParamExist(PARAM_FOG) )
493 {
494 CfgParamFloat cfg_fog = CfgParamFloat.Cast( GetParamByName(PARAM_FOG, CFG_TYPE_FLOAT) );
495 scene.SetInitFog(cfg_fog.GetValue());
496 }
497
498 //Load Weather Wind Force
499 if ( ParamExist(PARAM_WIND_F) )
500 {
501 CfgParamFloat cfg_wind_force = CfgParamFloat.Cast( GetParamByName(PARAM_WIND_F, CFG_TYPE_FLOAT) );
502 scene.SetInitWindForce(cfg_wind_force.GetValue());
503 }
504 }
const string PARAM_WIND_F
Definition PluginConfigScene.c:16
const string PARAM_RAIN
Definition PluginConfigScene.c:14
const string PARAM_FOG
Definition PluginConfigScene.c:15
const string PARAM_OVERCAST
Definition PluginConfigScene.c:13

Перекрестные ссылки CFG_TYPE_FLOAT.

◆ OnInit() [1/3]

override void OnInit ( )
inlineprotected
345 {
346 super.OnInit();
347
349
351 for ( int i = 0; i < params.Count(); i++ )
352 {
353 CfgParamString param = CfgParamString.Cast( params.Get( i ) );
354 m_PresetList.Insert( param.GetValue() );
355 }
356 }
const string PRESET_LIST
Definition PluginConfigDebugProfile.c:8

◆ OnInit() [2/3]

override void OnInit ( )
inlineprotected
37 {
38 //super.OnInit();
39
40 FILE_ROOT = g_Game.GetMissionFolderPath();
41 }

Перекрестные ссылки g_Game.

◆ OnInit() [3/3]

override void OnInit ( )
inlineprotected
18 {
19 super.OnInit();
20
21 CfgParamString cfg_scene_name = CfgParamString.Cast( GetParamByName( SCENE_EDITOR_SCENE, CFG_TYPE_STRING ) );
22
23 if ( cfg_scene_name.GetValue() == STRING_EMPTY )
24 {
25 cfg_scene_name.SetValue( PluginSceneManager.SCENE_DEFAULT_NAME );
26 SaveConfigToFile();
27 }
28 }

Перекрестные ссылки CFG_TYPE_STRING и STRING_EMPTY.

◆ PluginConfigDebugProfile()

void PluginConfigDebugProfile ( )
inlineprotected
291 {
319 }
CfgParamString GetNewCfgParamString(string value)
Definition PluginConfigDebugProfile.c:94
CfgParamArray GetNewCfgParamArray(array< ref CfgParam > params)
Definition PluginConfigDebugProfile.c:54
array< ref CfgParam > GetDefaultBatchRectParams()
Definition PluginConfigDebugProfile.c:321
CfgParamInt GetNewCfgParamInt(int value)
Definition PluginConfigDebugProfile.c:84
CfgParamFloat GetNewCfgParamFloat(float value)
Definition PluginConfigDebugProfile.c:74
CfgParamBool GetNewCfgParamBool(bool value)
Definition PluginConfigDebugProfile.c:64

◆ PluginConfigEmotesProfile()

void PluginConfigEmotesProfile ( )
inlineprotected
74 {
76 //Here you can configure default EMOTES
77
89 //m_DefaultValues.Insert( EMOTE_12, GetNewCfgParamInt(EmoteConstants.ID_EMOTE_DANCE) );
90 //m_DefaultValues.Insert( EMOTE_12, GetNewCfgParamInt(EmoteConstants.ID_EMOTE_SOS) );
91 }
Definition constants.c:356
const int ID_EMOTE_THROAT
Definition constants.c:366
const int ID_EMOTE_SOS
Definition constants.c:358
const int ID_EMOTE_GREETING
Definition constants.c:357
const int ID_EMOTE_THUMB
Definition constants.c:365
const int ID_EMOTE_TAUNTELBOW
Definition constants.c:364
const int ID_EMOTE_SURRENDER
Definition constants.c:396
const int ID_EMOTE_TAUNTKISS
Definition constants.c:362
const int ID_EMOTE_TAUNT
Definition constants.c:360
const int ID_EMOTE_SUICIDE
Definition constants.c:367
const int ID_EMOTE_HEART
Definition constants.c:359
const int ID_EMOTE_POINT
Definition constants.c:377

Перекрестные ссылки EmoteConstants::ID_EMOTE_GREETING, EmoteConstants::ID_EMOTE_HEART, EmoteConstants::ID_EMOTE_POINT, EmoteConstants::ID_EMOTE_SOS, EmoteConstants::ID_EMOTE_SUICIDE, EmoteConstants::ID_EMOTE_SURRENDER, EmoteConstants::ID_EMOTE_TAUNT, EmoteConstants::ID_EMOTE_TAUNTELBOW, EmoteConstants::ID_EMOTE_TAUNTKISS, EmoteConstants::ID_EMOTE_THROAT и EmoteConstants::ID_EMOTE_THUMB.

◆ PresetAdd()

bool PresetAdd ( string preset_name)
inlineprotected
870 {
871 if ( m_PresetList.Find(preset_name) > -1 )
872 {
873 return false;
874 }
875
878 SaveConfigToFile();
879
880 return true;
881 }
void SetPreset(string preset_name, int index=-1)
Definition PluginConfigDebugProfile.c:819

◆ PresetRemove()

bool PresetRemove ( string preset_name)
inlineprotected
884 {
885 if ( m_PresetList.Find(preset_name) == -1 )
886 {
887 return false;
888 }
889
891 RemoveParamByName( preset_name );
892 SaveConfigToFile();
893
894 return true;
895 }
void RemovePreset(string preset_name)
Definition PluginConfigDebugProfile.c:842

◆ PresetRename()

bool PresetRename ( string old_preset_name,
string new_preset_name )
inlineprotected
898 {
899 int index = m_PresetList.Find( old_preset_name );
900
901 if ( index == -1 )
902 {
903 return false;
904 }
905
907 RenameParam( old_preset_name, new_preset_name );
908 SaveConfigToFile();
909
910 return true;
911 }

◆ RemovePreset()

void RemovePreset ( string preset_name)
inlineprotected
843 {
845 for ( int i = 0; i < params.Count(); i++ )
846 {
847 CfgParamString param = CfgParamString.Cast( params.Get(i) );
848 if ( param.GetValue() == preset_name )
849 {
850 params.RemoveItem( param );
851 m_PresetList.RemoveItem( preset_name );
852 }
853 }
854 }

◆ SaveSceneObjects()

void SaveSceneObjects ( SceneData scene)
inlineprotected
277 {
278 array<ref SceneObject> objects = scene.GetSceneObjects();
279
280 // Save Objects
281 for ( int i = 0; i < objects.Count(); ++i )
282 {
283 SceneObject obj = objects.Get(i);
284
285 string param_name;
286
287 param_name = PARAM_OBJ_NAME+"_"+i.ToString();
288
289 // Save Scene Object
290 CfgParamArray cfg_param_obj = CfgParamArray.Cast( GetParamByName(param_name, CFG_TYPE_ARRAY) );
291
292 // Obj Type Name
293 CfgParamString cfg_param_obj_type = CfgParamString.Cast( cfg_param_obj.GetValueByName(PARAM_OBJ_TYPE, CFG_TYPE_STRING) );
294 cfg_param_obj_type.SetValue(obj.GetTypeName());
295
296 // Obj Position
297 CfgParamString cfg_param_obj_pos = CfgParamString.Cast( cfg_param_obj.GetValueByName(PARAM_OBJ_POS, CFG_TYPE_STRING) );
299
300 // Obj Rotation
301 CfgParamFloat cfg_param_obj_rot = CfgParamFloat.Cast( cfg_param_obj.GetValueByName(PARAM_OBJ_ROT, CFG_TYPE_FLOAT) );
302 cfg_param_obj_rot.SetValue(obj.GetRotation());
303
304 // Obj Health
305 CfgParamFloat cfg_param_obj_hlt = CfgParamFloat.Cast( cfg_param_obj.GetValueByName(PARAM_OBJ_HLT, CFG_TYPE_FLOAT) );
306 cfg_param_obj_hlt.SetValue(obj.GetHealth());
307
308 // Obj Init Script
309 CfgParamString cfg_param_obj_iscr = CfgParamString.Cast( cfg_param_obj.GetValueByName(PARAM_OBJ_ISCR, CFG_TYPE_STRING) );
311
312 EntityAI e_obj = obj.GetObject();
313
314 int attcount = e_obj.GetInventory().AttachmentCount();
315
316 if ( attcount > 0 )
317 {
319 CfgParamArray cfg_param_att = CfgParamArray.Cast( GetParamByName(param_name_att, CFG_TYPE_ARRAY) );
320 cfg_param_att.Clear();
321
322 for (int att = 0; att < attcount; att++)
323 {
324 EntityAI attachment = e_obj.GetInventory().GetAttachmentFromIndex(att);
325
326 CfgParamString cfg_param_att_str = new CfgParamString("");
327 cfg_param_att_str.SetValue( attachment.GetType() );
328 cfg_param_att.InsertValue( cfg_param_att_str );
329 }
330 }
331
333 if ( linked_scene_objects.Count() > 0 )
334 {
335 string param_name_lnk = param_name + "_" + PARAM_OBJ_LNK;
336 CfgParamArray cfg_param_lnk = CfgParamArray.Cast( GetParamByName( param_name_lnk, CFG_TYPE_ARRAY ) );
337 cfg_param_lnk.Clear();
338
339 for ( int lnk = 0; lnk < linked_scene_objects.Count(); lnk++ )
340 {
341 CfgParamInt cfg_param_lnk_int = new CfgParamInt("");
342
343 int index = objects.Find( linked_scene_objects.Get(lnk) );
344
345 if ( index >= 0 )
346 {
347 cfg_param_lnk_int.SetValue( index );
348 cfg_param_lnk.InsertValue( cfg_param_lnk_int );
349 }
350 }
351 }
352 }
353
354 // Save Count Of objects
355 CfgParamInt cfg_obj_count = CfgParamInt.Cast( GetParamByName(PARAM_OBJ_COUNT, CFG_TYPE_INT) );
356 cfg_obj_count.SetValue(objects.Count());
357 }
Definition Building.c:6
string EncodeInitScript(string script)
Definition PluginConfigScene.c:133
float GetRotation()
Definition SceneObject.c:490
EntityAI GetObject()
Definition SceneObject.c:59
string GetTypeName()
Definition SceneObject.c:375
string GetPositionAsString()
Definition SceneObject.c:472
float GetHealth()
Definition SceneObject.c:433
string GetInitScript()
Definition SceneObject.c:83
array< SceneObject > GetLinkedSceneObjects()
Definition SceneObject.c:324

Перекрестные ссылки CFG_TYPE_ARRAY, CFG_TYPE_FLOAT, CFG_TYPE_INT, CFG_TYPE_STRING, SceneObject::GetHealth(), SceneObject::GetInitScript(), SceneObject::GetLinkedSceneObjects(), SceneObject::GetObject(), SceneObject::GetPositionAsString(), SceneObject::GetRotation() и SceneObject::GetTypeName().

◆ SaveScenePlayer()

void SaveScenePlayer ( SceneData scene)
inlineprotected
245 {
246 array<ref ScenePlayer> players = scene.GetScenePlayers();
247
248 if ( players.Count() > 0 )
249 {
250 ScenePlayer plyr = players.Get(0);
251
252 // Save Player
253 CfgParamArray cfg_param_player = CfgParamArray.Cast( GetParamByName(PARAM_PLAYER, CFG_TYPE_ARRAY) );
254
255 // Obj Position
256 CfgParamString cfg_param_player_pos = CfgParamString.Cast( cfg_param_player.GetValueByName(PARAM_OBJ_POS, CFG_TYPE_STRING) );
257 cfg_param_player_pos.SetValue(plyr.GetPositionAsString());
258
259 // Obj Rotation
260 CfgParamFloat cfg_param_player_rot = CfgParamFloat.Cast( cfg_param_player.GetValueByName(PARAM_OBJ_ROT, CFG_TYPE_FLOAT) );
261 cfg_param_player_rot.SetValue(plyr.GetRotation());
262
263 // Obj Health
264 CfgParamFloat cfg_param_player_hlt = CfgParamFloat.Cast( cfg_param_player.GetValueByName(PARAM_OBJ_HLT, CFG_TYPE_FLOAT) );
265 cfg_param_player_hlt.SetValue(plyr.GetHealth());
266
267 // Obj Init Script
268 CfgParamString cfg_param_player_iscr = CfgParamString.Cast( cfg_param_player.GetValueByName(PARAM_OBJ_ISCR, CFG_TYPE_STRING) );
269 cfg_param_player_iscr.SetValue( EncodeInitScript(plyr.GetInitScript()) );
270 }
271 }

Перекрестные ссылки CFG_TYPE_ARRAY, CFG_TYPE_FLOAT и CFG_TYPE_STRING.

◆ SaveSceneSettings()

void SaveSceneSettings ( SceneData scene)
inlineprotected
189 {
190 // Save Mission Name
191 CfgParamString cfg_mission = CfgParamString.Cast( GetParamByName(PARAM_MISSION, CFG_TYPE_STRING) );
192 cfg_mission.SetValue(scene.GetNameMission());
193
194 // Save Time
195 CfgParamFloat cfg_time = CfgParamFloat.Cast( GetParamByName(PARAM_TIME, CFG_TYPE_FLOAT) );
196 cfg_time.SetValue(scene.GetInitTime());
197
198 // Save Year
199 CfgParamInt cfg_year = CfgParamInt.Cast( GetParamByName(PARAM_YEAR, CFG_TYPE_INT) );
200 cfg_year.SetValue(scene.GetInitYear());
201
202 // Save Month
203 CfgParamInt cfg_month = CfgParamInt.Cast( GetParamByName(PARAM_MONTH, CFG_TYPE_INT) );
204 cfg_month.SetValue(scene.GetInitMonth());
205
206 // Save Day
207 CfgParamInt cfg_day = CfgParamInt.Cast( GetParamByName(PARAM_DAY, CFG_TYPE_INT) );
208 cfg_day.SetValue(scene.GetInitDay());
209
210 // Save Hour
211 CfgParamInt cfg_hour = CfgParamInt.Cast( GetParamByName(PARAM_HOUR, CFG_TYPE_INT) );
212 cfg_hour.SetValue(scene.GetInitHour());
213
214 // Save Minute
215 CfgParamInt cfg_minute = CfgParamInt.Cast( GetParamByName(PARAM_MINUTE, CFG_TYPE_INT) );
216 cfg_minute.SetValue(scene.GetInitMinute());
217 }

Перекрестные ссылки CFG_TYPE_FLOAT, CFG_TYPE_INT и CFG_TYPE_STRING.

◆ SaveSceneWeather()

void SaveSceneWeather ( SceneData scene)
inlineprotected
223 {
224 // Save Weather Overcast
225 CfgParamFloat cfg_overcast = CfgParamFloat.Cast( GetParamByName(PARAM_OVERCAST, CFG_TYPE_FLOAT) );
226 cfg_overcast.SetValue(scene.GetInitOvercast());
227
228 // Save Weather Rain
229 CfgParamFloat cfg_rain = CfgParamFloat.Cast( GetParamByName(PARAM_RAIN, CFG_TYPE_FLOAT) );
230 cfg_rain.SetValue(scene.GetInitRain());
231
232 // Save Weather Fog
233 CfgParamFloat cfg_fog = CfgParamFloat.Cast( GetParamByName(PARAM_FOG, CFG_TYPE_FLOAT) );
234 cfg_fog.SetValue(scene.GetInitFog());
235
236 // Save Weather Wind Force
237 CfgParamFloat cfg_wind_force = CfgParamFloat.Cast( GetParamByName(PARAM_WIND_F, CFG_TYPE_FLOAT) );
238 cfg_wind_force.SetValue(scene.GetInitWindForce());
239 }

Перекрестные ссылки CFG_TYPE_FLOAT.

◆ SceneDataLoad()

SceneData SceneDataLoad ( string scene_name)
inlineprotected
369 {
370 m_FileSceneName = scene_name+"."+PluginSceneManager.SCENE_SUFIX;
371
372//PrintString("Loading scene: "+ scene_name);
373
374 LoadConfigFile();
375
376 // Load Scene name
378 scene.SetNameScene(scene_name);
379
380 // Load Scene settings
382
383 // Load Scene Weather
385
386 // Load Scene Player
388
389 // Load Scene Objects
391
392 if ( !FileExist(GetFileName()) )
393 {
395 }
396
397 return scene;
398 }
void LoadSceneWeather(SceneData scene)
Definition PluginConfigScene.c:475
override string GetFileName()
Definition PluginConfigDebugProfile.c:361
void LoadSceneSettings(SceneData scene)
Definition PluginConfigScene.c:403
void LoadScenePlayer(SceneData scene)
Definition PluginConfigScene.c:509
void LoadSceneObjects(SceneData scene)
Definition PluginConfigScene.c:555
void SceneDataSave(SceneData scene)
Definition PluginConfigScene.c:159
Definition SceneData.c:2

Перекрестные ссылки FileExist() и GetFileName().

◆ SceneDataSave()

void SceneDataSave ( SceneData scene)
inlineprotected
160 {
161 PluginSceneManager module_scene_editor = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
162
163 EntityAI player = PluginSceneManager.PLAYER;
164
165 // Log("Saving started....")
166 m_FileSceneName = scene.GetNameScene()+"."+PluginSceneManager.SCENE_SUFIX;
167
168 // Save Settings
170
171 // Save Weater
173
174 // Save Players
176
177 // Save Objects
179
180 // Save To File
181 SaveConfigToFile();
182 }
void SaveSceneWeather(SceneData scene)
Definition PluginConfigScene.c:222
void SaveSceneSettings(SceneData scene)
Definition PluginConfigScene.c:188
void SaveSceneObjects(SceneData scene)
Definition PluginConfigScene.c:276
void SaveScenePlayer(SceneData scene)
Definition PluginConfigScene.c:244

Перекрестные ссылки GetPlugin().

◆ SceneDelete()

void SceneDelete ( string scene_name)
inlineprotected
73 {
74 string file_path = GetPathScenes()+"\\"+scene_name+"."+PluginSceneManager.SCENE_SUFIX;
75 PluginFileHandler.FileDelete(file_path);
76 }
Definition PluginConfigHandler.c:2

◆ SceneDuplicate()

void SceneDuplicate ( string scene_name)
inlineprotected
82 {
83 string file_path = GetPathScenes()+"\\"+scene_name+"."+PluginSceneManager.SCENE_SUFIX;
84 string file_path_new = file_path;
85
86 int i = 0;
87 while ( FileExist(file_path_new) )
88 {
89 file_path_new = GetPathScenes()+"\\"+scene_name+"_copy"+i.ToString()+"."+PluginSceneManager.SCENE_SUFIX;
90 i++;
91 }
92
94 }

Перекрестные ссылки FileExist().

◆ SceneRename()

void SceneRename ( string scene_name,
string scene_name_new )
inlineprotected
63 {
64 string file_path = GetPathScenes()+"\\"+scene_name+"."+PluginSceneManager.SCENE_SUFIX;
65 string file_path_new = GetPathScenes()+"\\"+scene_name_new+"."+PluginSceneManager.SCENE_SUFIX;
67 }

◆ SetArray()

CfgParamArray SetArray ( string key,
array< ref CfgParam > params )
inlineprotected
105 {
106 CfgParamArray param = CfgParamArray.Cast( GetParamByName( key, CFG_TYPE_ARRAY ) );
107 param.SetParams( params );
108 SaveConfigToFile();
109 return param;
110 }

Перекрестные ссылки CFG_TYPE_ARRAY.

◆ SetBatchSpawnQuantity()

void SetBatchSpawnQuantity ( int value)
inlineprotected
504 {
506 }

◆ SetBatchSpawnRectangle()

void SetBatchSpawnRectangle ( int row,
int column,
float rowStep,
float columnStep )
inlineprotected
474 {
476 params.Clear();
477 CfgParamString param;
478
479 CfgParamInt param1 = new CfgParamInt("");
480 param1.SetValue(row);
481 CfgParamInt param2 = new CfgParamInt("");
482 param2.SetValue(column);
483 CfgParamFloat param3 = new CfgParamFloat("");
484 param3.SetValue(rowStep);
485 CfgParamFloat param4 = new CfgParamFloat("");
486 param4.SetValue(columnStep);
487
488 params.Insert(param1);
489 params.Insert(param2);
490 params.Insert(param3);
491 params.Insert(param4);
492 SaveConfigToFile();
493 }

◆ SetBool()

CfgParamBool SetBool ( string key,
bool value )
inlineprotected
137 {
138 CfgParamBool param = CfgParamBool.Cast( GetParamByName( key, CFG_TYPE_BOOL ) );
139 param.SetValue( value );
140 SaveConfigToFile();
141 return param;
142 }

Перекрестные ссылки CFG_TYPE_BOOL.

◆ SetCharacterAgentsVisible()

void SetCharacterAgentsVisible ( bool is_visible)
inlineprotected
611 {
613 }

◆ SetCharacterDebugVisible()

void SetCharacterDebugVisible ( bool is_visible)
inlineprotected
624 {
626 }

◆ SetCharacterLevelsVisible()

void SetCharacterLevelsVisible ( bool is_visible)
inlineprotected
556 {
558 }

◆ SetCharacterModifiersVisible()

void SetCharacterModifiersVisible ( bool is_visible)
inlineprotected
598 {
600 }

◆ SetCharacterStatsVisible()

void SetCharacterStatsVisible ( bool is_visible)
inlineprotected
585 {
587 }

◆ SetCharacterStomachVisible()

void SetCharacterStomachVisible ( bool is_visible)
inlineprotected
637 {
639 }

◆ SetConfigClassesFlag()

void SetConfigClassesFlag ( int flag)
inlineprotected
742 {
744 }

◆ SetDefaultPreset()

void SetDefaultPreset ( string value)
inlineprotected
461 {
463 }

◆ SetEmoteSlot1()

void SetEmoteSlot1 ( int emoted_id)
inlineprotected
110 {
111 SetInt( EmoteSlots.EMOTE_1.ToString(), emoted_id );
112 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot10()

void SetEmoteSlot10 ( int emoted_id)
inlineprotected
200 {
201 SetInt( EmoteSlots.EMOTE_10.ToString(), emoted_id );
202 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot11()

void SetEmoteSlot11 ( int emoted_id)
inlineprotected
210 {
211 SetInt( EmoteSlots.EMOTE_11.ToString(), emoted_id );
212 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot2()

void SetEmoteSlot2 ( int emoted_id)
inlineprotected
120 {
121 SetInt( EmoteSlots.EMOTE_2.ToString(), emoted_id );
122 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot3()

void SetEmoteSlot3 ( int emoted_id)
inlineprotected
130 {
131 SetInt( EmoteSlots.EMOTE_3.ToString(), emoted_id );
132 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot4()

void SetEmoteSlot4 ( int emoted_id)
inlineprotected
140 {
141 SetInt( EmoteSlots.EMOTE_4.ToString(), emoted_id );
142 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot5()

void SetEmoteSlot5 ( int emoted_id)
inlineprotected
150 {
151 SetInt( EmoteSlots.EMOTE_5.ToString(), emoted_id );
152 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot6()

void SetEmoteSlot6 ( int emoted_id)
inlineprotected
160 {
161 SetInt( EmoteSlots.EMOTE_6.ToString(), emoted_id );
162 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot7()

void SetEmoteSlot7 ( int emoted_id)
inlineprotected
170 {
171 SetInt( EmoteSlots.EMOTE_7.ToString(), emoted_id );
172 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot8()

void SetEmoteSlot8 ( int emoted_id)
inlineprotected
180 {
181 SetInt( EmoteSlots.EMOTE_8.ToString(), emoted_id );
182 }

Перекрестные ссылки SetInt().

◆ SetEmoteSlot9()

void SetEmoteSlot9 ( int emoted_id)
inlineprotected
190 {
191 SetInt( EmoteSlots.EMOTE_9.ToString(), emoted_id );
192 }

Перекрестные ссылки SetInt().

◆ SetFilterOrderReversed()

void SetFilterOrderReversed ( bool reversed)
inlineprotected
448 {
450 }

◆ SetFloat()

CfgParamFloat SetFloat ( string key,
float value )
inlineprotected
169 {
170 CfgParamFloat param = CfgParamFloat.Cast( GetParamByName( key, CFG_TYPE_FLOAT ) );
171 param.SetValue( value );
172 SaveConfigToFile();
173 return param;
174 }

Перекрестные ссылки CFG_TYPE_FLOAT.

◆ SetFreeCameraCrosshairVisible()

void SetFreeCameraCrosshairVisible ( bool is_visible)
inlineprotected

◆ SetHealthVisible()

void SetHealthVisible ( bool is_visible)
inlineprotected
715 {
717 }

◆ SetInt() [1/2]

CfgParamInt SetInt ( string key,
int value )
inlineprotected
201 {
202 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key, CFG_TYPE_INT ) );
203 param.SetValue( value );
204 SaveConfigToFile();
205 return param;
206 }

Перекрестные ссылки CFG_TYPE_INT.

Используется в GetInt(), SetEmoteSlot1(), SetEmoteSlot10(), SetEmoteSlot11(), SetEmoteSlot2(), SetEmoteSlot3(), SetEmoteSlot4(), SetEmoteSlot5(), SetEmoteSlot6(), SetEmoteSlot7(), SetEmoteSlot8() и SetEmoteSlot9().

◆ SetInt() [2/2]

CfgParamInt SetInt ( string key,
int value )
inlineprotected
42 {
43 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key, CFG_TYPE_INT ) );
44 param.SetValue( value );
45 //SaveConfigToFile();
46 return param;
47 }

Перекрестные ссылки CFG_TYPE_INT.

◆ SetItemCategoryFlag()

void SetItemCategoryFlag ( int flag)
inlineprotected
756 {
758 }

◆ SetItemDebugPos()

void SetItemDebugPos ( vector pos)
inlineprotected
565 {
566 SetString( ITEMDEBUG ,pos.ToString(false));
567 }
proto string ToString(bool beautify=true)
Vector to string.

Перекрестные ссылки vector::ToString().

◆ SetItemHealth()

bool SetItemHealth ( string preset_name,
int item_index,
float health )
inlineprotected
1028 {
1030
1031 if ( param != NULL )
1032 {
1033 CfgParamFloat param_float = CfgParamFloat.Cast( param );
1034 param_float.SetValue( health );
1035 }
1036 else
1037 {
1039
1040 if ( item_params != NULL )
1041 {
1042 CfgParamFloat new_param = new CfgParamFloat( SUB_PARAM_ITEM_HEALTH );
1043 new_param.SetValue( health );
1044 item_params.Insert( new_param );
1045 }
1046 }
1047
1048 SaveConfigToFile();
1049
1050 return true;
1051 }

◆ SetItemQuantity()

bool SetItemQuantity ( string preset_name,
int item_index,
int quantity )
inlineprotected
1069 {
1071
1072 if ( param != NULL )
1073 {
1074 CfgParamInt param_int = CfgParamInt.Cast( param );
1075 param_int.SetValue( quantity );
1076 }
1077 else
1078 {
1080
1081 if ( item_params != NULL )
1082 {
1083 CfgParamInt new_param = new CfgParamInt( SUB_PARAM_ITEM_QUANTITY );
1084 new_param.SetValue( quantity );
1085 item_params.Insert( new_param );
1086 }
1087 }
1088
1089 SaveConfigToFile();
1090
1091 return true;
1092 }

◆ SetItemSearch()

void SetItemSearch ( string value)
inlineprotected
516 {
518 }

◆ SetItemWithPhysics()

bool SetItemWithPhysics ( string preset_name,
int item_index,
bool with_physics )
inlineprotected
1110 {
1112
1113 if ( param != NULL )
1114 {
1115 CfgParamBool param_bool = CfgParamBool.Cast( param );
1116 param_bool.SetValue( with_physics );
1117 }
1118 else
1119 {
1121
1122 if ( item_params != NULL )
1123 {
1124 CfgParamBool new_param = new CfgParamBool( SUB_PARAM_ITEM_WITH_PHYSICS );
1125 new_param.SetValue( with_physics );
1126 item_params.Insert( new_param );
1127 }
1128 }
1129
1130 SaveConfigToFile();
1131
1132 return true;
1133 }

◆ SetLogsEnabled()

void SetLogsEnabled ( bool value)
inlineprotected
542 {
544 }

◆ SetMergeType()

void SetMergeType ( bool is_visible)
inlineprotected
676 {
678 }

◆ SetPreset()

void SetPreset ( string preset_name,
int index = -1 )
inlineprotected
820 {
822 CfgParamString param;
823
824 if ( index == -1 )
825 {
826 param = new CfgParamString( "" );
827 param.SetValue( preset_name );
828 params.Insert( param );
829 m_PresetList.Insert( preset_name );
830 }
831 else
832 {
833 param = CfgParamString.Cast( params.Get( index ) );
834 param.SetValue( preset_name );
835 params.Set( index, param );
837 }
838
839 SaveConfigToFile();
840 }

◆ SetSceneEditorDrawSelection()

void SetSceneEditorDrawSelection ( bool value)
inlineprotected
383 {
385 }

◆ SetSceneEditorLoadPlayerPos()

void SetSceneEditorLoadPlayerPos ( bool value)
inlineprotected
396 {
398 }

◆ SetSceneEditorName()

void SetSceneEditorName ( string value)
inlineprotected
58 {
59 CfgParamString cfg_scene_name = CfgParamString.Cast( GetParamByName( SCENE_EDITOR_SCENE, CFG_TYPE_STRING ) );
60 cfg_scene_name.SetValue( value );
61 SaveConfigToFile();
62 }

Перекрестные ссылки CFG_TYPE_STRING.

◆ SetSceneEditorRotationAngle()

void SetSceneEditorRotationAngle ( int value)
inlineprotected
409 {
411 }

◆ SetShowItemPreview()

void SetShowItemPreview ( bool show)
inlineprotected
728 {
729 SetBool( ITEM_PREVIEW, show );
730 }

◆ SetSoundsetFilter()

void SetSoundsetFilter ( string content)
inlineprotected
689 {
691 }

◆ SetSpawnDistance()

void SetSpawnDistance ( float value)
inlineprotected
529 {
531 }

◆ SetSpawnLocIndex()

void SetSpawnLocIndex ( int value)
inlineprotected
435 {
437 }

◆ SetString()

CfgParamString SetString ( string key,
string value )
inlineprotected
233 {
234 CfgParamString param = CfgParamString.Cast( GetParamByName( key, CFG_TYPE_STRING ) );
235 if(param)
236 {
237 param.SetValue( value );
238 SaveConfigToFile();
239 }
240 return param;
241 }

Перекрестные ссылки CFG_TYPE_STRING.

◆ SetTabSelected()

void SetTabSelected ( int value)
inlineprotected
422 {
424 }

◆ SetTempVisible()

void SetTempVisible ( bool is_visible)
inlineprotected
702 {
704 }

◆ SetVersionVisible()

void SetVersionVisible ( bool is_visible)
inlineprotected
663 {
665 }

◆ SwapItem()

bool SwapItem ( string preset_name,
int item1_index,
int item2_index )
inlineprotected
956 {
958
959 if ( item1_index >= params.Count() || item2_index >= params.Count() )
960 {
961 return false;
962 }
963
964 params.SwapItems( item1_index, item2_index );
965 SaveConfigToFile();
966
967 return true;
968 }

Поля

◆ BATCH_QUANT

const string BATCH_QUANT = "batch_spawn_quantity"
protected

◆ BATCH_RECT

const string BATCH_RECT = "batch_spawn_rect"
protected

◆ CHAR_AGENTS_VIS

const string CHAR_AGENTS_VIS = "console_character_agents_visible"
protected

◆ CHAR_DEBUG_VIS

const string CHAR_DEBUG_VIS = "console_character_debug_visible"
protected

◆ CHAR_LEVELS_VIS

const string CHAR_LEVELS_VIS = "console_character_levels_visible"
protected

◆ CHAR_MODIFIERS_VIS

const string CHAR_MODIFIERS_VIS = "console_character_modifiers_visible"
protected

◆ CHAR_STATS_VIS

const string CHAR_STATS_VIS = "console_character_stats_visible"
protected

◆ CHAR_STOMACH_VIS

const string CHAR_STOMACH_VIS = "console_character_stomach_visible"
protected

◆ CONFIG_CLASSES_FLAG

const string CONFIG_CLASSES_FLAG = "toggled_config_classes_flag"
protected

◆ FILE_NAME

const string FILE_NAME = "scene_editor.cfg"
protected

◆ FILE_ROOT

string FILE_ROOT = "$saves:"
protected

◆ FILE_ROOT_SCENES

const string FILE_ROOT_SCENES = "scenes"
protected

◆ FILTER_REVERSED

const string FILTER_REVERSED = "filter_order_reversed"
protected

◆ FREE_CAMERA_CROSSHAIR

const string FREE_CAMERA_CROSSHAIR = "console_free_camera_crosshair_visible"
protected

◆ HEALTH_VIS

const string HEALTH_VIS = "console_health_visible"
protected

◆ ITEM_CATEGORY_FLAG

const string ITEM_CATEGORY_FLAG = "toggled_item_categories_flag"
protected

◆ ITEM_PREVIEW

const string ITEM_PREVIEW = "show_item_preview"
protected

◆ ITEM_SEARCH

const string ITEM_SEARCH = "console_ItemSearch"
protected

◆ ITEM_TAB_SELECTED

const string ITEM_TAB_SELECTED = "console_TabSelected"
protected

◆ ITEMDEBUG

const string ITEMDEBUG = "item_debug"
protected

◆ LOGS_ENABLED

const string LOGS_ENABLED = "logs_enabled"
protected

◆ m_CfgTemplate

TStringArray m_CfgTemplate
protected

◆ m_DefaultValues

ref map< string, ref CfgParam > m_DefaultValues
protected

◆ m_FileSceneName

string m_FileSceneName
protected

◆ m_PresetList

ref TStringArray m_PresetList
protected

◆ MERGE_TYPE

const string MERGE_TYPE = "category_merge_type"
protected

◆ PARAM_DAY

const string PARAM_DAY = "InitDay"
protected

◆ PARAM_FOG

const string PARAM_FOG = "WeatherInitFog"
protected

◆ PARAM_HOUR

const string PARAM_HOUR = "InitHour"
protected

◆ PARAM_MINUTE

const string PARAM_MINUTE = "InitMinute"
protected

◆ PARAM_MISSION

const string PARAM_MISSION = "Mission"
protected

◆ PARAM_MONTH

const string PARAM_MONTH = "InitMonth"
protected

◆ PARAM_OBJ_ATT

const string PARAM_OBJ_ATT = "Att"
protected

◆ PARAM_OBJ_COUNT

const string PARAM_OBJ_COUNT = "SceneObjectsCount"
protected

◆ PARAM_OBJ_DMG

const string PARAM_OBJ_DMG = "damage"
protected

◆ PARAM_OBJ_HLT

const string PARAM_OBJ_HLT = "health"
protected

◆ PARAM_OBJ_ISCR

const string PARAM_OBJ_ISCR = "init_script"
protected

◆ PARAM_OBJ_LNK

const string PARAM_OBJ_LNK = "Lnk"
protected

◆ PARAM_OBJ_NAME

const string PARAM_OBJ_NAME = "SceneObject"
protected

◆ PARAM_OBJ_POS

const string PARAM_OBJ_POS = "position"
protected

◆ PARAM_OBJ_ROT

const string PARAM_OBJ_ROT = "rotation"
protected

◆ PARAM_OBJ_TYPE

const string PARAM_OBJ_TYPE = "type"
protected

◆ PARAM_OVERCAST

const string PARAM_OVERCAST = "WeatherInitOvercast"
protected

◆ PARAM_PLAYER

const string PARAM_PLAYER = "Player"
protected

◆ PARAM_RAIN

const string PARAM_RAIN = "WeatherInitRain"
protected

◆ PARAM_TIME

const string PARAM_TIME = "InitTime"
protected

◆ PARAM_WIND_F

const string PARAM_WIND_F = "WeatherInitWindForce"
protected

◆ PARAM_YEAR

const string PARAM_YEAR = "InitYear"
protected

◆ POSITION_NAME_ROOT

const string POSITION_NAME_ROOT = "console_positions_"
protected

◆ PRESET_DEFAULT

const string PRESET_DEFAULT = "console_preset_default"
protected

◆ PRESET_LIST

const string PRESET_LIST = "console_presets"
protected

◆ SCENE_DRAW_SELECTION

const string SCENE_DRAW_SELECTION = "scene_editor_draw_selection"
protected

◆ SCENE_EDITOR_SCENE

const string SCENE_EDITOR_SCENE = "scene_load"
protected

◆ SCENE_LOAD_PLAYER_POS

const string SCENE_LOAD_PLAYER_POS = "scene_editor_load_player_pos"
protected

◆ SCENE_ROTATION_ANGLE

const string SCENE_ROTATION_ANGLE = "scene_editor_rotation_angle"
protected

◆ SOUNDFILTER

const string SOUNDFILTER = "soundset_editbox"
protected

◆ SPAWN_DISTANCE

const string SPAWN_DISTANCE = "console_SpawnDistance"
protected

◆ SPAWN_LOC_INDEX

const string SPAWN_LOC_INDEX = "spawn_loc_index"
protected

◆ SUB_PARAM_ITEM

const string SUB_PARAM_ITEM = "item"
protected

◆ SUB_PARAM_ITEM_HEALTH

const string SUB_PARAM_ITEM_HEALTH = "health"
protected

◆ SUB_PARAM_ITEM_NAME

const string SUB_PARAM_ITEM_NAME = "name"
protected

◆ SUB_PARAM_ITEM_QUANTITY

const string SUB_PARAM_ITEM_QUANTITY = "quantity"
protected

◆ SUB_PARAM_ITEM_WITH_PHYSICS

const string SUB_PARAM_ITEM_WITH_PHYSICS = "with_physics"
protected

◆ TEMP_VIS

const string TEMP_VIS = "console_temperature_visible"
protected

◆ VERSION_VIS

const string VERSION_VIS = "console_version_visible"
protected

Объявления и описания членов классов находятся в файлах: