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.
 
 
 
 
 
 

27 lines
703 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Sog;
namespace Rank
{
public static class GameDBServerIDUtils
{
public static int DBServerCount = 1;
public static void Init(ServerApp app)
{
DBServerCount = app.GetCluster().GetChannelCount((int)ServerType.RealmsList);
TraceLog.Debug("GameDBServerIDUtils.Init DBServerCount is {0}", DBServerCount);
}
public static uint GetGameDBServerID(int dbIndex)
{
return ServerIDUtils.GetLevel1ServerIDByType(RankServerUtils.GetAppID(),
(int)ServerType.GameDb, (int)dbIndex);
}
}
}