Daily update on 20230413 by nitload youmu
This commit is contained in:
@@ -19,5 +19,10 @@ namespace StgSharp.Control
|
||||
GameTimeLine._currentPool.geometryContainer.Add(geo);
|
||||
}
|
||||
}
|
||||
|
||||
public static void Geometry(IGeometry geometry)
|
||||
{
|
||||
GameTimeLine._currentPool.geometryContainer.Add(geometry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
public abstract class BlockOperation : INode<BlockOperation>
|
||||
{
|
||||
|
||||
private ContainerNode<BlockOperation> _id;
|
||||
|
||||
|
||||
ContainerNode<BlockOperation> INode<BlockOperation>.ID => _id;
|
||||
|
||||
void INode<BlockOperation>.setID(ContainerNode<BlockOperation> id)
|
||||
{
|
||||
if (_id == default)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidOperationException("Cannot set ID twice!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public abstract void OnUpdating();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,8 @@ namespace StgSharp.Control
|
||||
{
|
||||
internal static Pool _currentPool;
|
||||
internal static LinkedList<Pool> allPool;
|
||||
public static Counter<uint> tickCounter
|
||||
= new Counter<uint>(0,1,1);
|
||||
internal static BlockOperation currentOperation;
|
||||
public static Counter<uint> tickCounter = new Counter<uint>(0,1,1);
|
||||
internal static TimelineBlock currentOperation;
|
||||
private static bool isPaused;
|
||||
|
||||
internal static void OnRender()
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
public abstract class TimelineBlock : INode<TimelineBlock>
|
||||
{
|
||||
|
||||
private ContainerNode<TimelineBlock> _id;
|
||||
|
||||
public abstract void OnUpdating();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user