new simplified timer. and little other ops

This commit is contained in:
Youmu Liu
2025-11-18 20:39:03 +08:00
parent 81a60d1cfe
commit ece12f2ea7
28 changed files with 2254 additions and 853 deletions
@@ -45,14 +45,11 @@ namespace StgSharp.Controls
private PlainGeometryMesh marker;
private TimeFunction _movement;
private Vec2 _currentPosition, _movementVec;
public MarkingLabel(PlainGeometryMesh marker, TimeFunction movement)
public MarkingLabel(PlainGeometryMesh marker)
{
this.marker = marker;
_movement = movement;
}
public bool IsEntity => true;
@@ -74,9 +71,7 @@ namespace StgSharp.Controls
public void Move(Vec2 movement)
{
if (!_movement.IsComplete) {
Position = _currentPosition + (_movement.Calculate() * _movementVec);
}
throw new NotImplementedException();
}
public void MoveTo(Vec2 target)