123456789101112131415161718192021222324252627 |
- using System.Collections.Generic;
- namespace ET.Server
- {
- public static class RealmGateAddressHelper
- {
- public static StartSceneConfig GetGame(int zone)
- {
- List<StartSceneConfig> zoneGates = StartSceneConfigCategory.Instance.Games[zone];
- int n = RandomGenerator.RandomNumber(0, zoneGates.Count);
- return zoneGates[n];
- }
- /// <summary>
- /// 获取所有游戏服
- /// </summary>
- /// <param name="zone"></param>
- /// <returns></returns>
- public static List<StartSceneConfig> GetAllGame(int zone)
- {
- return StartSceneConfigCategory.Instance.Games[zone];
- }
- }
- }
|