示例#1
0
文件: AutoPvP.cs 项目: LordEnigma/UO
        public static PvPSeason EnsureSeason(int num, bool replace = false)
        {
            if (!Seasons.ContainsKey(num))
            {
                Seasons.Add(num, new PvPSeason(num));
            }
            else if (replace || Seasons[num] == null)
            {
                Seasons[num] = new PvPSeason(num);
            }

            return(Seasons[num]);
        }