com.alicizax.unity.framework/Runtime/Timer/ITimerServiceDebugView.cs

23 lines
589 B
C#
Raw Normal View History

namespace AlicizaX.Timer.Runtime
{
internal struct TimerDebugInfo
{
public int TimerId;
public float LeftTime;
public float Duration;
public bool IsLoop;
public bool IsRunning;
public bool IsUnscaled;
public float CreationTime;
}
internal interface ITimerServiceDebugView
{
int GetAllTimers(TimerDebugInfo[] results);
void GetStatistics(out int activeCount, out int poolCapacity, out int peakActiveCount, out int freeCount);
int GetStaleOneShotTimers(TimerDebugInfo[] results);
}
}