| 123456789101112131415161718192021222324252627282930 |
- using Model;
- namespace Hotfix
- {
- [ObjectSystem]
- public class RealmGateAddressComponentSystem : StartSystem<RealmGateAddressComponent>
- {
- public override void Start(RealmGateAddressComponent self)
- {
- self.Start();
- }
- }
-
- public static class RealmGateAddressComponentEx
- {
- public static void Start(this RealmGateAddressComponent component)
- {
- StartConfig[] startConfigs = component.Entity.GetComponent<StartConfigComponent>().GetAll();
- foreach (StartConfig config in startConfigs)
- {
- if (!config.AppType.Is(AppType.Gate))
- {
- continue;
- }
-
- component.GateAddress.Add(config);
- }
- }
- }
- }
|