using TBL.CSharp.Game.Server.Message; namespace TBL.CSharp.Game.Server; /// /// 服务 /// public abstract class Service { /// /// 服务队列 /// public readonly SignalQueue SignalQueue; /// /// 服务句柄 /// public int Handle { get; internal set; } /// /// 服务容器 /// public ServiceContainer Container { get; internal set; } public Service() { SignalQueue = new SignalQueue(this); } /// /// 服务信号反应 /// public abstract void OnSignal(Signal signal, ServiceContainer serviceContainer); }