daily update on 20230105 by nitload youmu

This commit is contained in:
Nitload
2023-01-06 00:53:51 +08:00
parent e464ac56ba
commit 9c2f69ff9f
29 changed files with 192 additions and 18 deletions
+4 -1
View File
@@ -6,6 +6,9 @@ namespace StgSharp.Logic
{
public interface INode
{
public LinkedListNode<INode> ID
{
get ;
}
}
}
@@ -4,7 +4,7 @@ using System.Text;
namespace StgSharp.Logic
{
internal class LinkedListNode<T> where T : INode
public class LinkedListNode<T> where T : INode
{
internal readonly T _this;
internal LinkedListNode<T> _previous;
+5 -1
View File
@@ -9,7 +9,11 @@ namespace StgSharp.Logic
public class Pool
{
public LinkedList<Point> pointContainer;
public LinkedList<Geometry> geometryContainer;
public LinkedList<IGeometry> geometryContainer;
public LinkedList<Sensor> sensorContainer;
public Line leftBoader;
public Line rightBoader;
+6 -1
View File
@@ -4,8 +4,13 @@ using System.Text;
namespace StgSharp.Logic
{
public class Sensor
public class Sensor : INode
{
private LinkedListNode<INode> _id;
LinkedListNode<INode> INode.ID
{
get { return _id; }
}
}
}