| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using System.Net;
- using ETModel;
- namespace ETHotfix
- {
- [ObjectSystem]
- public class NetInnerComponentAwakeSystem : AwakeSystem<NetInnerComponent>
- {
- public override void Awake(NetInnerComponent self)
- {
- self.Awake();
- }
- }
- [ObjectSystem]
- public class NetInnerComponentAwake1System : AwakeSystem<NetInnerComponent, string>
- {
- public override void Awake(NetInnerComponent self, string a)
- {
- self.Awake(a);
- }
- }
-
- [ObjectSystem]
- public class NetInnerComponentLoadSystem : LoadSystem<NetInnerComponent>
- {
- public override void Load(NetInnerComponent self)
- {
- self.MessagePacker = new MongoPacker();
- self.MessageDispatcher = new InnerMessageDispatcher();
- }
- }
- [ObjectSystem]
- public class NetInnerComponentUpdateSystem : UpdateSystem<NetInnerComponent>
- {
- public override void Update(NetInnerComponent self)
- {
- self.Update();
- }
- }
- public static class NetInnerComponentHelper
- {
- public static void Awake(this NetInnerComponent self)
- {
- self.Awake(NetworkProtocol.TCP);
- self.MessagePacker = new MongoPacker();
- self.MessageDispatcher = new InnerMessageDispatcher();
- self.AppType = StartConfigComponent.Instance.StartConfig.AppType;
- }
- public static void Awake(this NetInnerComponent self, string address)
- {
- self.Awake(NetworkProtocol.TCP, address);
- self.MessagePacker = new MongoPacker();
- self.MessageDispatcher = new InnerMessageDispatcher();
- self.AppType = StartConfigComponent.Instance.StartConfig.AppType;
- }
- public static void Update(this NetInnerComponent self)
- {
- self.Update();
- }
- }
- }
|