RealmGameAddressHelper.cs 347 B

1234567891011121314151617
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. public static class RealmGameAddressHelper
  5. {
  6. public static StartSceneConfig GetGame(int zone)
  7. {
  8. List<StartSceneConfig> zoneGates = StartSceneConfigCategory.Instance.Games[zone];
  9. int n = RandomGenerator.RandomNumber(0, zoneGates.Count);
  10. return zoneGates[n];
  11. }
  12. }
  13. }