mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
31 lines
872 B
C#
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);
|
|
}
|
|
}
|
|
}
|