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

◆ OnDebug()

override void EntityPlacementCallback::OnDebug ( vector p0,
vector p1,
bool hasHit,
bool found )
inlineprivate

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

73 {
74#ifdef DIAG_DEVELOPER
75#ifndef SERVER
76 Shape shape;
77
78 int alpha = 0x33000000;
79 int colour = 0x00FF0000;
80 if (!hasHit && found)
81 {
82 colour = 0x000000FF;
83 }
84 else if (!hasHit)
85 {
86 colour = 0x0000FF00;
87 alpha = 0x11000000;
88 }
89
90 shape = Shape.Create(ShapeType.BBOX, colour | alpha, ShapeFlags.NOZBUFFER | ShapeFlags.TRANSP, -m_Extents, m_Extents);
91 shape.SetMatrix(m_Transform);
92 m_Shapes.Insert(shape);
93
94 vector p[2];
95 p[0] = p0;
96 p[1] = p1;
97 shape = Shape.CreateLines(colour | 0xFF000000, ShapeFlags.NOZBUFFER | ShapeFlags.TRANSP, p, 2);
98 m_Shapes.Insert(shape);
99#endif
100#endif
101 }
vector m_Transform[4]
If 'OnDebug' is to be called.
Определения Object.c:21
vector m_Extents
The true center of the bounding box of the object to be dropped in model space.
Определения Object.c:16
ShapeType
Определения EnDebug.c:116
ShapeFlags
Определения EnDebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

Перекрестные ссылки m_Extents, m_Transform и Shape.