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.
56 lines
1.5 KiB
56 lines
1.5 KiB
/*
|
|
Sog 游戏基础库
|
|
2016 by zouwei
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using ProtoCSStruct;
|
|
using Sog;
|
|
|
|
namespace Rank
|
|
{
|
|
public class RankServerData : IServerDataObj
|
|
{
|
|
public ServerApp m_app;
|
|
public StructPacketSender m_packetSender;
|
|
|
|
// 服务器自己用的配置文件
|
|
public RankServerConfig m_RankConfig;
|
|
|
|
// 前一天开始时间
|
|
public long m_lastDayStartTime;
|
|
|
|
//public List<RankRealmData> m_listrealm;
|
|
//public List<DBMail> m_listmail;
|
|
//public ArenaInfoCache nullInfo;
|
|
|
|
//排行榜数据
|
|
public WorldRankData m_RankData;
|
|
|
|
public Dictionary<int, ActRemRank> m_ActRank;
|
|
public Dictionary<long, DBActRankTopPlayerInfo> playerInfo;
|
|
|
|
public long m_lastGetRealmTime;
|
|
public Dictionary<int, RealmBriefInfo> m_configRealm;
|
|
|
|
public RankServerData(ServerApp app)
|
|
{
|
|
m_app = app;
|
|
m_packetSender = new StructPacketSender();
|
|
m_packetSender.Init(app.ServerID, app.GetCluster());
|
|
//m_listrealm = new List<RankRealmData>();
|
|
//m_listmail = new List<DBMail>();
|
|
m_RankData = new WorldRankData();
|
|
m_configRealm = new Dictionary<int, RealmBriefInfo>();
|
|
m_ActRank = new Dictionary<int, ActRemRank>();
|
|
playerInfo = new Dictionary<long, DBActRankTopPlayerInfo>();
|
|
}
|
|
|
|
public override int GetDataType()
|
|
{
|
|
return RankDataObjType.RankServerData;
|
|
}
|
|
}
|
|
}
|
|
|