using System; using System.Collections.Generic; using ProtoCSStruct; using Sog; namespace Racehorse { /// /// 起服需要配加载 /// public class RacehorseMatchData : IServerDataObj { public const int CourseLength = 4; /// /// 报名结构 重启服务器需要加载 /// public Dictionary signUp; /// /// 匹配结构 /// public Dictionary> matchPool { get; set; } /// /// 比赛结果缓存 过时清除 /// public Dictionary> matchResult { get; set; } public bool MatchFlag { get; set; } public Dictionary matchReward { get; set; } public Dictionary> ReviewMatchReward { get; set; } public Dictionary gServer { get; set; } /// /// 赛季 /// public long Season { get; set; } /// /// 赛季第几天 /// public int SeasonNo { get; set; } /// /// 最大比赛序号id 需要加载 /// public int MaxMatchNo { get; set; } public int[] CourseList { get; set; } public int CourseId { get; set; } public bool LoadFlag { get; set; } /// /// 实际的比赛开启时间 /// public long changeEndTime { get; set; } public long startMatchTime { get; set; } public RacehorseMatchData() { signUp = new Dictionary(); matchPool = new Dictionary>(); matchResult = new Dictionary>(); matchReward = new Dictionary(); ReviewMatchReward = new Dictionary>(); gServer = new Dictionary(); Season = 0; CourseList = new int[CourseLength]; //维护得地方有点多 CourseId = 0; SeasonNo = 0; MatchFlag = false; LoadFlag = false; changeEndTime = 0; startMatchTime = 0; } public override int GetDataType() { return RacehorseDataObjType.RacehorseMatchData; } } }