55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using GLFWDotNet;
|
|
using StgSharp;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
|
|
|
|
namespace StgSharp
|
|
{
|
|
public class Point: INode
|
|
{
|
|
internal StgSharp.ContainerNode<INode> _id;
|
|
|
|
internal float _x;
|
|
internal float _y;
|
|
|
|
public GetLocationHandler getXHandler;
|
|
public GetLocationHandler getYHandler;
|
|
|
|
ContainerNode<INode> INode.ID
|
|
{
|
|
get { return this._id; }
|
|
}
|
|
|
|
public float X
|
|
{
|
|
get
|
|
{
|
|
return getXHandler(Control.TimeLine.tickCounter);
|
|
}
|
|
}
|
|
public float Y
|
|
{
|
|
get
|
|
{
|
|
return getYHandler(Control.TimeLine.tickCounter);
|
|
}
|
|
}
|
|
|
|
void INode.setID<T>(ContainerNode<T> id)
|
|
{
|
|
if (id == null)
|
|
{
|
|
_id = id as ContainerNode<INode>;
|
|
}
|
|
else
|
|
{
|
|
throw new ArgumentNullException("Cannot set id teice!");
|
|
}
|
|
}
|
|
}
|
|
}
|