RealmGateAddressSystem.cs 595 字节
Newer Older
1
using Model;
2

3
namespace Hotfix
4
{
5
	[ObjectEvent]
6
	public class RealmGateAddressComponentEvent : ObjectEvent<RealmGateAddressComponent>, IStart
7
	{
8
		public void Start()
9
		{
10
			this.Get().Start();
11 12 13
		}
	}
	
14
	public static class RealmGateAddressSystem
15
	{
16
		public static void Start(this RealmGateAddressComponent component)
17 18 19 20 21 22 23 24
		{
			StartConfig[] startConfigs = component.GetComponent<StartConfigComponent>().GetAll();
			foreach (StartConfig config in startConfigs)
			{
				if (!config.AppType.Is(AppType.Gate))
				{
					continue;
				}
T
tanghai 已提交
25
				
26 27 28 29 30
				component.GateAddress.Add(config);
			}
		}
	}
}