daily update on 20230120 by nitload youmu, struct of project fixed, math lib created

This commit is contained in:
Nitload
2023-01-20 00:45:19 +08:00
parent e9116ca11b
commit c14b7ae7f8
50 changed files with 202 additions and 159 deletions
+6 -8
View File
@@ -1,17 +1,15 @@
using StgSharp.Control;
using StgSharp.Geometries;
using StgSharp.Logic;
using StgSharp;
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Text;
namespace StgSharp.Logic
namespace StgSharp
{
public class Pool
{
public LinkedList<Point> pointContainer;
public LinkedList<IGeometrySimple> geometryContainer;
public LinkedList<IGeometry> geometryContainer;
public LinkedList<Sensor> sensorContainer;
public Line leftBoader;
@@ -22,13 +20,13 @@ namespace StgSharp.Logic
public void OnRender()
{
ContainerNode<Point> idCache = pointContainer._head;
ContainerNode<Point> idCache = pointContainer._first;
Point p;
do
{
p = idCache._this;
p._x = p.getXHandler.Invoke(TimeLine.tickCounter);
p._y = p.getYHandler.Invoke(TimeLine.tickCounter);
p._x = p.getXHandler.Invoke(Control.TimeLine.tickCounter);
p._y = p.getYHandler.Invoke(Control.TimeLine.tickCounter);
idCache = idCache._next;
} while (idCache != default(ContainerNode<Point>));