RealmGateAddressComponent.cs 480 B

123456789101112131415161718192021
  1. using Model;
  2. namespace Hotfix
  3. {
  4. [EntityEvent(EntityEventId.RealmGateAddressComponent)]
  5. public static class RealmGateAddressComponentE
  6. {
  7. public static void Awake(this RealmGateAddressComponent component)
  8. {
  9. StartConfig[] startConfigs = component.GetComponent<StartConfigComponent>().GetAll();
  10. foreach (StartConfig config in startConfigs)
  11. {
  12. if (!config.AppType.Is(AppType.Gate))
  13. {
  14. continue;
  15. }
  16. component.GateAddress.Add(config);
  17. }
  18. }
  19. }
  20. }