daily update on 20230111 by nitload youmu

This commit is contained in:
Nitload
2023-01-12 00:33:20 +08:00
parent 6dfc2f8d70
commit e9116ca11b
47 changed files with 190 additions and 98 deletions
+21 -5
View File
@@ -1,7 +1,9 @@
using StgSharp.Geometries;
using StgSharp.Control;
using StgSharp.Geometries;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Text;
namespace StgSharp.Logic
@@ -9,11 +11,8 @@ namespace StgSharp.Logic
public class Pool
{
public LinkedList<Point> pointContainer;
public LinkedList<IGeometry> geometryContainer;
public LinkedList<IGeometrySimple> geometryContainer;
public LinkedList<Sensor> sensorContainer;
public Line leftBoader;
public Line rightBoader;
@@ -21,5 +20,22 @@ namespace StgSharp.Logic
public Line bottomBoader;
public void OnRender()
{
ContainerNode<Point> idCache = pointContainer._head;
Point p;
do
{
p = idCache._this;
p._x = p.getXHandler.Invoke(TimeLine.tickCounter);
p._y = p.getYHandler.Invoke(TimeLine.tickCounter);
idCache = idCache._next;
} while (idCache != default(ContainerNode<Point>));
}
}
}