| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System.Collections.Generic;
- using System.Net;
- using ETModel;
- namespace ETHotfix
- {
- [ObjectSystem]
- public class NetOuterComponentAwakeSystem : AwakeSystem<NetOuterComponent>
- {
- public override void Awake(NetOuterComponent self)
- {
- self.Awake(self.Protocol);
- self.MessagePacker = new ProtobufPacker();
- self.MessageDispatcher = new OuterMessageDispatcher();
- }
- }
- [ObjectSystem]
- public class NetOuterComponentAwake1System : AwakeSystem<NetOuterComponent, string>
- {
- public override void Awake(NetOuterComponent self, string address)
- {
- self.Awake(self.Protocol, address);
- self.MessagePacker = new ProtobufPacker();
- self.MessageDispatcher = new OuterMessageDispatcher();
- }
- }
-
- [ObjectSystem]
- public class NetOuterComponentLoadSystem : LoadSystem<NetOuterComponent>
- {
- public override void Load(NetOuterComponent self)
- {
- self.MessagePacker = new ProtobufPacker();
- self.MessageDispatcher = new OuterMessageDispatcher();
- }
- }
-
- [ObjectSystem]
- public class NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
- {
- public override void Update(NetOuterComponent self)
- {
- self.Update();
- }
- }
- }
|