58 lines
1.2 KiB
C#
58 lines
1.2 KiB
C#
using Steamworks;
|
|
using StgSharp;
|
|
using StgSharp.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http.Headers;
|
|
using System.Text;
|
|
|
|
namespace StgSharp
|
|
{
|
|
public class Pool:INode<Pool>
|
|
{
|
|
internal LinkedList<Point> pointContainer;
|
|
internal LinkedList<IGeometry> geometryContainer;
|
|
internal LinkedList<Entity> _bulletContainer;
|
|
internal LinkedList<Entity> _awardContainer;
|
|
internal LinkedList<Entity> _enemyContainer;
|
|
|
|
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)
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
void INode<Pool>.setID(ContainerNode<Pool> id)
|
|
{
|
|
if (_id == default)
|
|
{
|
|
_id = id;
|
|
}
|
|
else
|
|
{
|
|
throw new ArgumentException("Cannot set ID twicee!");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|