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.
 
 
 
 
 
 

95 lines
2.5 KiB

using System;
using System.Collections.Generic;
using ProtoCSStruct;
using Sog;
namespace Racehorse
{
/// <summary>
/// 起服需要配加载
/// </summary>
public class RacehorseMatchData : IServerDataObj
{
public const int CourseLength = 4;
/// <summary>
/// 报名结构 重启服务器需要加载
/// </summary>
public Dictionary<long, MatchSignUp> signUp;
/// <summary>
/// 匹配结构
/// </summary>
public Dictionary<int, List<MatchSignUp>> matchPool { get; set; }
/// <summary>
/// 比赛结果缓存 过时清除
/// </summary>
public Dictionary<int, Dictionary<int, PvpMatchOne>> matchResult { get; set; }
public bool MatchFlag { get; set; }
public Dictionary<int, PvpMatchResult> matchReward { get; set; }
public Dictionary<int, Dictionary<int, PvpMatchResult>> ReviewMatchReward { get; set; }
public Dictionary<long, uint> gServer { get; set; }
/// <summary>
/// 赛季
/// </summary>
public long Season { get; set; }
/// <summary>
/// 赛季第几天
/// </summary>
public int SeasonNo { get; set; }
/// <summary>
/// 最大比赛序号id 需要加载
/// </summary>
public int MaxMatchNo { get; set; }
public int[] CourseList { get; set; }
public int CourseId { get; set; }
public bool LoadFlag { get; set; }
/// <summary>
/// 实际的比赛开启时间
/// </summary>
public long changeEndTime { get; set; }
public long startMatchTime { get; set; }
public RacehorseMatchData()
{
signUp = new Dictionary<long, MatchSignUp>();
matchPool = new Dictionary<int, List<MatchSignUp>>();
matchResult = new Dictionary<int, Dictionary<int, PvpMatchOne>>();
matchReward = new Dictionary<int, PvpMatchResult>();
ReviewMatchReward = new Dictionary<int, Dictionary<int, PvpMatchResult>>();
gServer = new Dictionary<long, uint>();
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;
}
}
}