daily update on 20230415 by nitload youmu
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Steamworks;
|
||||
using StgSharp;
|
||||
using StgSharp.Control;
|
||||
using StgSharp.Math;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -9,11 +10,11 @@ namespace StgSharp.Geometries
|
||||
{
|
||||
public class Line:IGeometry
|
||||
{
|
||||
internal Point _basePoint;
|
||||
internal Point _beginPoint;
|
||||
internal Point _endPoint;
|
||||
internal GetLocationHandler _beginPointMov;
|
||||
internal GetLocationHandler _endPointMov;
|
||||
internal Point _basePoint = default ;
|
||||
internal Point _beginPoint = default ;
|
||||
internal Point _endPoint = default;
|
||||
internal GetLocationHandler movBegin;
|
||||
internal GetLocationHandler movEnd;
|
||||
internal RenderMode _renderMode;
|
||||
internal readonly uint bornTick;
|
||||
|
||||
@@ -35,6 +36,14 @@ namespace StgSharp.Geometries
|
||||
bornTick = tickCounter._value;
|
||||
}
|
||||
|
||||
public Line(Point begin, Point end)
|
||||
{
|
||||
this._beginPoint = begin;
|
||||
this._endPoint = end;
|
||||
}
|
||||
|
||||
public Line() { }
|
||||
|
||||
public override float SetArrayX()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
@@ -60,9 +69,13 @@ namespace StgSharp.Geometries
|
||||
throw new ArgumentException("Lines do not need the third parameter to define!");
|
||||
}
|
||||
|
||||
public virtual vec3d MoveBeginPoint(uint tick) => default;
|
||||
//计算线起点的方法,通过对线的派生的重写实现功能
|
||||
public virtual vec3d MoveBeginPoint(uint tick)
|
||||
=> movBegin.Invoke( GameTimeLine.tickCounter);
|
||||
|
||||
public virtual vec3d MoveEndPoint(uint tick) => default;
|
||||
//计算线重点的方法,通过对线的派生的重写实现功能
|
||||
public virtual vec3d MoveEndPoint(uint tick)
|
||||
=> movEnd.Invoke( GameTimeLine.tickCounter);
|
||||
|
||||
internal override void OnRender(uint tick)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user