| 12345678910111213141516171819202122232425262728293031323334353637 |
- 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 NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
- {
- public override void Update(NetOuterComponent self)
- {
- self.Update();
- }
- }
- }
|