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

◆ RemoveShape()

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

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

113 {
114 if (!shape)
115 return;
116
117 int nDebugShapes = m_DebugShapes.Count();
118 for (int i = 0; i < nDebugShapes; ++i)
119 {
120 Shape foundShape = m_DebugShapes.Get(i);
121
122 if (foundShape && foundShape == shape)
123 {
124 foundShape.Destroy();
125 m_DebugShapes.Remove(i); // Mandatory! Otherwise the Destroy() function causes crash!
126 shape = null;
127 return;
128 }
129 }
130 }
static ref array< Shape > m_DebugShapes
Определения 3_Game/DayZ/tools/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().