daily update on 20230408 by nitload youmu
This commit is contained in:
@@ -5,7 +5,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp
|
||||
namespace StgSharp.Geometries
|
||||
{
|
||||
public class Line:IGeometry
|
||||
{
|
||||
@@ -15,7 +15,7 @@ namespace StgSharp
|
||||
internal GetLocationHandler _beginPointMov;
|
||||
internal GetLocationHandler _endPointMov;
|
||||
internal RenderMode _renderMode;
|
||||
|
||||
internal readonly uint bornTick;
|
||||
|
||||
public override Point BasePoint => _basePoint;
|
||||
|
||||
@@ -25,6 +25,16 @@ namespace StgSharp
|
||||
public override Point RefVec02 => default;
|
||||
public override RenderMode renderMode => _renderMode;
|
||||
|
||||
public Line(uint bornTime) : base(bornTime)
|
||||
{
|
||||
bornTick = bornTime;
|
||||
}
|
||||
|
||||
public Line(Counter<uint> tickCounter) : base(tickCounter)
|
||||
{
|
||||
bornTick = tickCounter._value;
|
||||
}
|
||||
|
||||
public override float SetArrayX()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -56,6 +66,7 @@ namespace StgSharp
|
||||
|
||||
internal override void OnRender(uint tick)
|
||||
{
|
||||
tick -= bornTick;
|
||||
CalcVec01(tick);
|
||||
switch (_renderMode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user