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

◆ InitInsiderBoxData()

void ConstructionPartTypeData::InitInsiderBoxData ( )
inlineprotected

'inside' box data to help determine whether the character is inside. Modelspace.

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

160 {
161 //insider box data
162 string path = m_PartPath + " insider_minMaxs";
163 if (g_Game.ConfigIsExisting(path))
164 {
165 //read from config and validate
166 array<string> tmp = new array<string>();
167 g_Game.ConfigGetTextArray(path, tmp);
168
169 int count = tmp.Count();
170 if (count == 0)
171 {
172 tmp = null;
173 return;
174 }
175 else if (count % 2 != 0)
176 {
177 ErrorEx("odd number of insider_minMaxs configured for " + m_PartPath);
178 tmp = null;
179 return;
180 }
181
182 m_InsiderBoxPairNames = new array<string>();
183 m_InsiderBoxPairNames.Copy(tmp);
184 }
185 }
DayZGame g_Game
Определения DayZGame.c:4074
string path
Определения OptionSelectorMultistate.c:142
ref array< string > m_InsiderBoxPairNames
Определения ConstructionPartTyped.c:25
enum ShapeType ErrorEx

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

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