Files
stgsharp/源代码/StgSharp/Control/TimeLine.cs
T

35 lines
877 B
C#

using StgSharp.Entities;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Control
{
public static class TimeLine
{
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)
{
}
}
}
}
}