28 lines
638 B
C#
28 lines
638 B
C#
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;
|
|
|
|
#if UNITY_EDITOR
|
|
public float CreationTime;
|
|
#endif
|
|
}
|
|
|
|
internal interface ITimerServiceDebugView
|
|
{
|
|
int GetAllTimers(TimerDebugInfo[] results);
|
|
|
|
void GetStatistics(out int activeCount, out int poolCapacity, out int peakActiveCount, out int freeCount);
|
|
|
|
#if UNITY_EDITOR
|
|
int GetStaleOneShotTimers(TimerDebugInfo[] results);
|
|
#endif
|
|
}
|
|
}
|