1.重名所有App级模块为Service 2.移除Module中心 移除SingletonManager 3.引入Service Scope Context概念 避免上下文Manager到处引用 4.修复部分bug
20 lines
743 B
C#
20 lines
743 B
C#
using System;
|
|
|
|
namespace AlicizaX
|
|
{
|
|
[UnityEngine.Scripting.Preserve]
|
|
public interface ITimerService : IService, IServiceTickable
|
|
{
|
|
int AddTimer(TimerHandler callback, float time, bool isLoop = false, bool isUnscaled = false, params object[] args);
|
|
int AddTimer(TimerHandlerNoArgs callback, float time, bool isLoop = false, bool isUnscaled = false);
|
|
int AddTimer<T>(Action<T> callback, T arg, float time, bool isLoop = false, bool isUnscaled = false);
|
|
void Stop(int timerId);
|
|
void Resume(int timerId);
|
|
bool IsRunning(int timerId);
|
|
float GetLeftTime(int timerId);
|
|
void Restart(int timerId);
|
|
void RemoveTimer(int timerId);
|
|
void RemoveAllTimer();
|
|
}
|
|
}
|