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.
43 lines
1.1 KiB
43 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using ProtoCSStruct;
|
|
using Sog;
|
|
|
|
namespace World
|
|
{
|
|
public class WorldRankDataRecord : Sog.Data.DataSeqSave
|
|
{
|
|
public int RankId;
|
|
public long BeginTime;
|
|
public Dictionary<long, DBRankPlayerInfo> RankDict = new Dictionary<long, DBRankPlayerInfo>();
|
|
|
|
//数据版本号,给客户端查询使用
|
|
public int RankDataVersion;
|
|
}
|
|
|
|
public class WorldRankDataOne
|
|
{
|
|
|
|
public WorldRankDataRecord LastRecord;
|
|
public WorldRankDataRecord CurRecord;
|
|
|
|
public long CurRecordMinScore; //排行榜上最小分数,大于这个的下次tick需要进行排行
|
|
public Dictionary<long, DBRankPlayerInfo> NeedRankPlayers = new Dictionary<long, DBRankPlayerInfo>();
|
|
}
|
|
|
|
public class WorldRankData : IServerDataObj
|
|
{
|
|
public override int GetDataType()
|
|
{
|
|
return WorldDataObjType.WorldRankData;
|
|
}
|
|
|
|
public bool IsLoadDbDataSuccess;
|
|
|
|
public Dictionary<int, WorldRankDataOne> AllRank = new Dictionary<int, WorldRankDataOne>();
|
|
|
|
}
|
|
}
|
|
|