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

◆ DrawBoxesDebug()

static void CfgPlayerRestrictedAreaHandler::DrawBoxesDebug ( bool draw)
inlinestaticprivate

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

183 {
184 if (!IsInitialized())
185 return;
186
187 if (!m_DbgShapesBoxes)
188 m_DbgShapesBoxes = {};
189
190 if (draw && m_DbgShapesBoxes.Count() == 0)
191 {
192 foreach (PlayerRestrictedAreaInstance area : m_Data.m_ValidatedAreas)
193 {
194 foreach (PRAShapeBoxData boxData : area.m_PRABoxDataTranslated)
195 {
196 Shape shp = Debug.DrawBox(boxData.m_Mins,boxData.m_Maxs);
197 shp.SetMatrix(boxData.m_Mat4);
198 m_DbgShapesBoxes.Insert(shp);
199 }
200 }
201 }
202 else if (!draw && m_DbgShapesBoxes.Count() > 0)
203 {
204 foreach (Shape box : m_DbgShapesBoxes)
205 {
206 box.Destroy();
207 }
208
209 m_DbgShapesBoxes.Clear();
210 }
211 }
void Debug()
Определения UniversalTemperatureSource.c:349
static ref CfgPlayerRestrictedAreaJsonData m_Data
Определения CfgPlayerRestrictedAreaHandler.c:6
ref array< Shape > m_DbgShapesBoxes
ref array< ref PRAShapeBoxData > m_PRABoxDataTranslated
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

Перекрестные ссылки Debug::DrawBox(), IsInitialized(), m_Data, m_DbgShapesBoxes, PlayerRestrictedAreaInstance::m_PRABoxDataTranslated и Shape.