daily update on 20230525 by nitload youmu, ses00001 not solved

This commit is contained in:
Nitload
2023-05-27 03:34:38 +08:00
parent e7261fbdf6
commit 384e8c8ad0
83 changed files with 2815 additions and 1946 deletions
+21 -1
View File
@@ -29,15 +29,24 @@ namespace StgSharp
internal Sensor<EntityPartical> Sensor;
#if DEBUG
public Pool()
{
initContainers();
Console.WriteLine("Pool init OK!");
}
#endif
public Pool(Line left, Line right, Line top, Line bottom)
{
initContainers();
topBoader = top;
bottomBoader= bottom;
rightBoader = right;
leftBoader = left;
}
public Pool( Geometries.Rectangle area)
{
vec3d vec = area.vertex01.Position - area.vertex02.Position;
@@ -79,6 +88,17 @@ namespace StgSharp
}
}
}
initContainers();
}
private void initContainers()
{
_id = new ContainerNode<Pool>(this);
pointContainer = new LinkedList<Point>();
_bulletContainer = new LinkedList<IEntity>();
_awardContainer = new LinkedList<IEntity>();
_enemyContainer = new LinkedList<IEntity>();
}
public void OnRender()