DayZ 1.29
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 g_Game.ConfigGetChildName(path, i, itemName);
97
98 string typesPath = path + " " + itemName + " types";
99 string texturePath = path + " " + itemName + " texture";
100
101 if (g_Game.ConfigIsExisting(typesPath) && g_Game.ConfigIsExisting(texturePath))
102 {
103 TStringArray types = new TStringArray();
104 string texture;
105 g_Game.ConfigGetText(texturePath, texture);
106 g_Game.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:3942
string path
Определения OptionSelectorMultistate.c:142
enum ShapeType ErrorEx
array< string > TStringArray
Определения EnScript.c:712

Перекрестные ссылки ErrorEx, g_Game, m_TypeTextureMapping и path.

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