You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
511 B

using System.Collections.Generic;
namespace ET
{
public static class RealmGateAddressHelper
{
public static StartSceneConfig GetGate(int zone, long accountId)
{
List<StartSceneConfig> zoneGates = StartSceneConfigCategory.Instance.Gates[zone];
int n = accountId.GetHashCode() % zoneGates.Count;
return zoneGates[n];
}
public static StartSceneConfig GetRealm(int zone)
{
StartSceneConfig zoneRealm = StartSceneConfigCategory.Instance.Realms[zone];
return zoneRealm;
}
}
}