using Model; namespace Hotfix { [ObjectSystem] public class RealmGateAddressComponentSystem : ObjectSystem, IStart { public void Start() { this.Get().Start(); } } public static class RealmGateAddressComponentEx { public static void Start(this RealmGateAddressComponent component) { StartConfig[] startConfigs = component.Parent.GetComponent().GetAll(); foreach (StartConfig config in startConfigs) { if (!config.AppType.Is(AppType.Gate)) { continue; } component.GateAddress.Add(config); } } } }