TH1/Unity/Assets/Scripts/Hotfix/Server/Demo/Realm/RealmGateAddressHelper.cs
2025-07-17 18:26:28 +08:00

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)];
}
}
}