daily update on 20230329 by nitload youmu
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using GLFWDotNet;
|
||||
using StgSharp.Geometries;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
@@ -7,6 +8,9 @@ namespace StgSharp.Control
|
||||
{
|
||||
public static class Add
|
||||
{
|
||||
public static void GeometryCombination(IGeometryCombination geometry)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
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();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using StgSharp.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
@@ -6,11 +7,28 @@ namespace StgSharp.Control
|
||||
{
|
||||
public static class TimeLine
|
||||
{
|
||||
public static Pool _cache;
|
||||
|
||||
internal static Pool _currentPool;
|
||||
public static LinkedList<Pool> allPool;
|
||||
public static Counter<uint> tickCounter
|
||||
= new Counter<uint>(0,1,1);
|
||||
internal static BlockOperation currentOperation;
|
||||
private static bool isPaused;
|
||||
|
||||
internal static void OnRender()
|
||||
{
|
||||
tickCounter.QuickAdd();
|
||||
foreach (Pool p in allPool)
|
||||
{
|
||||
_currentPool = p;
|
||||
if (!isPaused)
|
||||
{
|
||||
currentOperation.OnUpdating();
|
||||
}
|
||||
foreach (EntityPartical b in _currentPool._bulletContainer)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user