NetOuterComponentSystem.cs 884 B

1234567891011121314151617181920212223242526272829303132333435363738
  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.MessageDispatcher = new OuterMessageDispatcher();
  10. }
  11. }
  12. public class NetOuterComponentAwake1System : AwakeSystem<NetOuterComponent, string>
  13. {
  14. public override void Awake(NetOuterComponent self, string address)
  15. {
  16. self.Awake(self.Protocol, address);
  17. self.MessageDispatcher = new OuterMessageDispatcher();
  18. }
  19. }
  20. public class NetOuterComponentLoadSystem : LoadSystem<NetOuterComponent>
  21. {
  22. public override void Load(NetOuterComponent self)
  23. {
  24. self.MessageDispatcher = new OuterMessageDispatcher();
  25. }
  26. }
  27. public class NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
  28. {
  29. public override void Update(NetOuterComponent self)
  30. {
  31. self.Update();
  32. }
  33. }
  34. }