namespace KYFramework.Network { [ObjectSystem] public class ServerComponentAwakeSystem : AwakeSystem { public override void Awake(ServerComponent self) { self.Awake(self.Protocol); self.MessagePacker = new ProtobufPacker(); self.MessageDispatcher = new OuterMessageDispatcher(); Log.Debug("服务组件初始化完毕!"); } } [ObjectSystem] public class ServerComponentAwake1System : AwakeSystem { public override void Awake(ServerComponent self, string address) { self.Awake(self.Protocol, address); self.MessagePacker = new ProtobufPacker(); self.MessageDispatcher = new OuterMessageDispatcher(); Log.Debug("服务组件初始化完毕!"); } } [ObjectSystem] public class ServerComponentLoadSystem : LoadSystem { public override void Load(ServerComponent self) { self.MessagePacker = new ProtobufPacker(); self.MessageDispatcher = new OuterMessageDispatcher(); } } [ObjectSystem] public class ServerComponentUpdateSystem : UpdateSystem { public override void Update(ServerComponent self) { self.Update(); } } }