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

◆ RemoveShape()

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

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

97 {
98 if (!shape) return;
99 for ( int i = 0; i < m_DebugShapes.Count(); i++ )
100 {
101 Shape found_shape = m_DebugShapes.Get(i);
102
103 if ( found_shape && found_shape == shape )
104 {
105 found_shape.Destroy();
106 m_DebugShapes.Remove(i); // Mandatory! Otherwise the Destroy() function causes crash!
107 shape = null;
108 return;
109 }
110 }
111 }
static ref array< Shape > m_DebugShapes
Определения Debug.c:24
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

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

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