using StgSharp.Entities; using StgSharp.Graphics; using System; using System.Diagnostics.CodeAnalysis; using System.Text; namespace StgSharp.Control { public static class ProgramTimeLine { [AllowNull] internal static Pool _currentPool = default; internal static LinkedList allPool; internal static LinkedList
allForm; /// /// Tick counter count the frames passed since the program start. /// public readonly static Counter tickCounter = new Counter(0,1,1); [AllowNull] internal static TimelineBlock currentOperation ; private static bool isPaused = false; static ProgramTimeLine() { allForm = new LinkedList(); allPool = new LinkedList(); #if DEBUG Console.WriteLine("Timeline init OK!") ; #endif internalIO.InternalInitGL(); } internal static void OnRender() { tickCounter.QuickAdd(); foreach (Pool p in allPool) { _currentPool = p; if (!isPaused) { currentOperation.OnUpdating(); } foreach (EntityPartical b in _currentPool._bulletContainer) { } } } public static void InitProgram() { } } }