daily update on 20230408 by nitload youmu

This commit is contained in:
Nitload
2023-04-08 01:34:08 +08:00
parent 8641b24206
commit daaa62579b
196 changed files with 2983 additions and 174 deletions
+13 -1
View File
@@ -3,7 +3,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
namespace StgSharp.Geometries
{
public class Circle : IGeometry
{
@@ -11,6 +11,7 @@ namespace StgSharp
internal Point _center;
internal Point _radiusVec;
internal RenderMode _renderMode;
internal readonly uint bornTick;
public override Point BasePoint => _baseCenter;
@@ -22,6 +23,16 @@ namespace StgSharp
public override RenderMode renderMode => _renderMode;
public Circle(uint bornTime) : base(bornTime)
{
bornTick = bornTime;
}
public Circle(Counter<uint> tickCounter) : base(tickCounter)
{
bornTick = tickCounter._value;
}
internal override void CalcVec01(uint tick)
{
_center._position = _baseCenter._position + MoveCenter(tick);
@@ -55,6 +66,7 @@ namespace StgSharp
internal override void OnRender(uint tick)
{
tick-=bornTick;
CalcVec01(tick);
switch (_renderMode)
{