Files
DanhengServer-OpenSource/Common/Data/Excel/ChallengeRewardExcel.cs
2024-05-25 00:47:17 +08:00

31 lines
872 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EggLink.DanhengServer.Data.Excel
{
[ResourceEntity("ChallengeMazeRewardLine.json,ChallengeStoryRewardLine.json", isMultifile: true)]
public class ChallengeRewardExcel : ExcelResource
{
public int GroupID { get; set; }
public int StarCount { get; set; }
public int RewardID { get; set; }
public override int GetId()
{
return (GroupID << 16) + StarCount;
}
public override void Loaded()
{
if (!GameData.ChallengeRewardData.ContainsKey(GroupID))
{
GameData.ChallengeRewardData[GroupID] = new List<ChallengeRewardExcel>();
}
GameData.ChallengeRewardData[GroupID].Add(this);
}
}
}