daily update on 20230525 by nitload youmu, ses00001 not solved
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Control;
|
||||
using StgSharp.Geometries;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
namespace StgSharp
|
||||
{
|
||||
public static class Add
|
||||
public static partial class Instruction
|
||||
{
|
||||
public static void Pool(Pool pool)
|
||||
public static void AddPool(Pool pool)
|
||||
{
|
||||
GameTimeLine.allPool.Add(pool);
|
||||
ProgramTimeLine.allPool.Add(pool);
|
||||
ProgramTimeLine._currentPool = pool;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
using System;
|
||||
using StgSharp.Control;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
namespace StgSharp
|
||||
{
|
||||
|
||||
public static class Change
|
||||
public static partial class Instruction
|
||||
{
|
||||
//method used for chaging the value of paameters will be listed here
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
using StgSharp.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
public static class GameTimeLine
|
||||
{
|
||||
internal static Pool _currentPool;
|
||||
internal static LinkedList<Pool> allPool;
|
||||
public static Counter<uint> tickCounter = new Counter<uint>(0,1,1);
|
||||
internal static TimelineBlock 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using StgSharp.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Control
|
||||
{
|
||||
public static class ProgramTimeLine
|
||||
{
|
||||
[AllowNull]
|
||||
internal static Pool _currentPool = default;
|
||||
internal static LinkedList<Pool> allPool;
|
||||
|
||||
/// <summary>
|
||||
/// Tick counter count the frames passed since the program start.
|
||||
/// </summary>
|
||||
public readonly static Counter<uint> tickCounter = new Counter<uint>(0,1,1);
|
||||
|
||||
[AllowNull]
|
||||
internal static TimelineBlock currentOperation ;
|
||||
private static bool isPaused = false;
|
||||
|
||||
static ProgramTimeLine()
|
||||
{
|
||||
allPool = new LinkedList<Pool>();
|
||||
#if DEBUG
|
||||
Console.WriteLine("Timeline init OK!") ;
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static void OnRender()
|
||||
{
|
||||
tickCounter.QuickAdd();
|
||||
foreach (Pool p in allPool)
|
||||
{
|
||||
_currentPool = p;
|
||||
if (!isPaused)
|
||||
{
|
||||
currentOperation.OnUpdating();
|
||||
}
|
||||
foreach (EntityPartical b in _currentPool._bulletContainer)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace StgSharp.Control
|
||||
{
|
||||
public static void Point(Point p)
|
||||
{
|
||||
GameTimeLine._currentPool.pointContainer.Remove(p);
|
||||
ProgramTimeLine._currentPool.pointContainer.Remove(p);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user