NetOuterComponentSystem.cs 1022 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. 
  2. namespace ET
  3. {
  4. public class NetOuterComponentAwakeSystem : AwakeSystem<NetOuterComponent>
  5. {
  6. public override void Awake(NetOuterComponent self)
  7. {
  8. self.Awake(self.Protocol);
  9. self.MessagePacker = new ProtobufPacker();
  10. self.MessageDispatcher = new OuterMessageDispatcher();
  11. }
  12. }
  13. public class NetOuterComponentAwake1System : AwakeSystem<NetOuterComponent, string>
  14. {
  15. public override void Awake(NetOuterComponent self, string address)
  16. {
  17. self.Awake(self.Protocol, address);
  18. self.MessagePacker = new ProtobufPacker();
  19. self.MessageDispatcher = new OuterMessageDispatcher();
  20. }
  21. }
  22. public class NetOuterComponentLoadSystem : LoadSystem<NetOuterComponent>
  23. {
  24. public override void Load(NetOuterComponent self)
  25. {
  26. self.MessagePacker = new ProtobufPacker();
  27. self.MessageDispatcher = new OuterMessageDispatcher();
  28. }
  29. }
  30. public class NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
  31. {
  32. public override void Update(NetOuterComponent self)
  33. {
  34. self.Update();
  35. }
  36. }
  37. }