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

◆ RemoveShape()

static void Debug::RemoveShape ( out Shape shape)
inlinestaticprivate

См. определение в файле 3_Game/DayZ/tools/Debug.c строка 113

114 {
115 if (!shape)
116 return;
117
118 int nDebugShapes = m_DebugShapes.Count();
119 for (int i = 0; i < nDebugShapes; ++i)
120 {
121 Shape foundShape = m_DebugShapes.Get(i);
122
123 if (foundShape && foundShape == shape)
124 {
125 foundShape.Destroy();
126 m_DebugShapes.Remove(i); // Mandatory! Otherwise the Destroy() function causes crash!
127 shape = null;
128 return;
129 }
130 }
131 }
static ref array< Shape > m_DebugShapes
Определения 3_Game/DayZ/tools/Debug.c:25
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

Перекрестные ссылки m_DebugShapes и Shape.

Используется в PluginBase::CleanupDebugShapes(), WeaponDebug::DrawLineOfFireMuzzleToHit(), WeaponDebug::RemoveAllShapes() и RemoveDebugShape().