daily update on 20230329 by nitload youmu

This commit is contained in:
Nitload
2023-03-29 00:51:31 +08:00
parent eedab82f6e
commit 8641b24206
33 changed files with 195 additions and 106 deletions
+29 -11
View File
@@ -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!");
}
}
}
}