RealmGateAddressComponentE.cs 497 B

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