Daily update on 20230413 by nitload youmu

This commit is contained in:
Nitload
2023-04-13 01:37:16 +08:00
parent 2e1b0fe351
commit de494a35e6
45 changed files with 294 additions and 206 deletions
+2 -25
View File
@@ -11,17 +11,8 @@ namespace StgSharp.Geometries
{
public class Point: INode<Point>
{
internal StgSharp.ContainerNode<Point> _id;
internal vec2d _position;
internal GetLocationHandler getXHandler;
internal GetLocationHandler getYHandler;
ContainerNode<Point> INode<Point>.ID
{
get { return this._id; }
}
internal vec3d _position;
public float X
{
@@ -33,21 +24,7 @@ namespace StgSharp.Geometries
get { return this._position.Y; }
}
void INode<Point>.setID(ContainerNode<Point> id)
{
if (id == null)
{
_id = id;
}
else
{
throw new ArgumentException("Cannot set id twice!");
}
}
public void Update() => new NotImplementedException();
public void OnRender()
{
this.getXHandler.Invoke(this._position, Control.GameTimeLine.tickCounter);
}
}
}