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

◆ LoadConfig()

void LoadConfig ( string path)
protected

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

91 {
92 int count = g_Game.ConfigGetChildrenCount(path);
93 for ( int i = 0; i < count; i++ )
94 {
95 string itemName;
96 GetGame().ConfigGetChildName(path, i, itemName);
97
98 string typesPath = path + " " + itemName + " types";
99 string texturePath = path + " " + itemName + " texture";
100
101 if (GetGame().ConfigIsExisting(typesPath) && GetGame().ConfigIsExisting(texturePath))
102 {
103 TStringArray types = new TStringArray();
104 string texture;
105 GetGame().ConfigGetText(texturePath, texture);
106 GetGame().ConfigGetTextArray(typesPath, types);
107
108 foreach (string s: types)
109 {
110 m_TypeTextureMapping.Insert(s,texture);
111 }
112 }
113 else
114 {
115 ErrorEx("Billboard set incorrect configuration, type or texture param missing: " + path);
116 }
117
118 }
119 }
class BillboardSetHandler m_TypeTextureMapping
DayZGame g_Game
Определения DayZGame.c:3868
string path
Определения OptionSelectorMultistate.c:142
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native CGame GetGame()
enum ShapeType ErrorEx
array< string > TStringArray
Определения EnScript.c:685

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetText(), CGame::ConfigGetTextArray(), ErrorEx, g_Game, GetGame(), m_TypeTextureMapping и path.

Используется в BillboardSet().