daily update on 20230329 by nitload youmu
This commit is contained in:
+29
-11
@@ -1,4 +1,5 @@
|
||||
using StgSharp;
|
||||
using Steamworks;
|
||||
using StgSharp;
|
||||
using StgSharp.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -7,25 +8,31 @@ using System.Text;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public class Pool
|
||||
public class Pool:INode<Pool>
|
||||
{
|
||||
public LinkedList<Point> pointContainer;
|
||||
public LinkedList<IGeometry> geometryContainer;
|
||||
public LinkedList<Entity> _bulletContainer;
|
||||
public LinkedList<Entity> _awardContainer;
|
||||
public LinkedList<Entity> _enemyContainer;
|
||||
internal LinkedList<Point> pointContainer;
|
||||
internal LinkedList<IGeometry> geometryContainer;
|
||||
internal LinkedList<Entity> _bulletContainer;
|
||||
internal LinkedList<Entity> _awardContainer;
|
||||
internal LinkedList<Entity> _enemyContainer;
|
||||
|
||||
public Line leftBoader;
|
||||
public Line rightBoader;
|
||||
public Line topBoader;
|
||||
public Line bottomBoader;
|
||||
internal Line leftBoader;
|
||||
internal Line rightBoader;
|
||||
internal Line topBoader;
|
||||
internal Line bottomBoader;
|
||||
|
||||
internal Sensor<EntityPartical> Sensor;
|
||||
|
||||
private ContainerNode<Pool> _id;
|
||||
|
||||
|
||||
|
||||
public Pool()
|
||||
{
|
||||
}
|
||||
|
||||
ContainerNode<Pool> INode<Pool>.ID => _id;
|
||||
|
||||
public void OnRender()
|
||||
{
|
||||
foreach (Enemy e in _enemyContainer)
|
||||
@@ -34,6 +41,17 @@ namespace StgSharp
|
||||
}
|
||||
}
|
||||
|
||||
void INode<Pool>.setID(ContainerNode<Pool> id)
|
||||
{
|
||||
if (_id == default)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentException("Cannot set ID twicee!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user