18 lines
398 B
C#
18 lines
398 B
C#
using System.Collections.Generic;
|
|
|
|
|
|
namespace ET.Server
|
|
{
|
|
public static partial class RealmGateAddressHelper
|
|
{
|
|
public static StartSceneConfig GetGate(int zone, string account)
|
|
{
|
|
ulong hash = (ulong)account.GetLongHashCode();
|
|
|
|
List<StartSceneConfig> zoneGates = StartSceneConfigCategory.Instance.Gates[zone];
|
|
|
|
return zoneGates[(int)(hash % (ulong)zoneGates.Count)];
|
|
}
|
|
}
|
|
}
|