| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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 NetInnerComponentUpdateSystem : UpdateSystem<NetInnerComponent>
- {
- public override void Update(NetInnerComponent self)
- {
- self.Update();
- }
- }
- public static class NetInnerComponentEx
- {
- 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();
- }
- }
- }
|