using System.Collections.Generic; namespace ET.Server { public static class RealmGameAddressHelper { public static StartSceneConfig GetGame(int zone) { List zoneGames = StartSceneConfigCategory.Instance.Games[zone]; int n = RandomGenerator.RandomNumber(0, zoneGames.Count); return zoneGames[n]; } public static StartSceneConfig GetGame(int zone, long accountId) { List zoneGames = StartSceneConfigCategory.Instance.Games[zone]; int n = accountId.GetHashCode() % zoneGames.Count; return zoneGames[n]; } } }