1 [
EntityEditorProps(
category:
"GameLib/Scripted/Generator", description:
"NotificationTestGeneratorEntity", dynamicBox:
true, visible:
false)]
11 ref array<ref Shape> m_Shapes;
15 m_Shapes =
new array<ref Shape>();
16 SetEventMask(EntityEvent.INIT);
19 override void EOnInit(IEntity owner)
21 m_Shapes =
new array<ref Shape>();
25 protected override void OnIntersectingShapeChangedXZInternal(IEntitySource shapeEntitySrc, IEntitySource other, array<vector> mins, array<vector> maxes)
27 Print(
"Entity: " + Name +
" intersected with " + mins.Count() +
" boxes");
28 m_Shapes =
new array<ref Shape>();
29 for (
int i = 0; i < mins.Count(); ++i)
33 points[1][0] = maxes[i][0]; points[1][1] = 0; points[1][2] = mins[i][2];
35 points[3][0] = mins[i][0]; points[3][1] = 0; points[3][2] = maxes[i][2];
37 m_Shapes.Insert(Shape.CreateLines(0xffdd55ff, ShapeFlags.VISIBLE | ShapeFlags.NOZBUFFER, points, 5));