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

61 lines
1.4 KiB
C#

using StgSharp.Entities;
using StgSharp.Graphics;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
namespace StgSharp.Controlling
{
public static partial class TimeLine
{
public const long version = 430;
internal static LinkedList<Form> allForm;
private static SemaphoreSlim ping;
private static SemaphoreSlim pong;
/// <summary>
/// Tick counter count the frames passed since the program start.
/// </summary>
public static readonly Counter<uint> tickCounter = new Counter<uint>(0, 1, 1);
internal static TimelineBlock currentOperation;
private static bool isPaused = false;
static unsafe TimeLine()
{
allForm = new LinkedList<Form>();
}
public static TimelineBlock CurrentOperation
{
get { return currentOperation; }
set
{
if (currentOperation == default ||
currentOperation.isComplete)
{
currentOperation = value;
}
}
}
public static void TimelineMain()
{
}
internal static void UodateAllFrame()
{
foreach (Form item in allForm)
{
item.formThread.Start();
}
}
}
}