Files
KianaBH3/Common/Data/Excel/ActChallengeDataExcel.cs
2025-06-14 11:15:32 +08:00

24 lines
645 B
C#

using System.Text.Json.Serialization;
namespace KianaBH.Data.Excel;
[ResourceEntity("ActChallengeData.json")]
public class ActChallengeDataExcel : ExcelResource
{
[JsonPropertyName("actId")] public uint ActId { get; set; }
[JsonPropertyName("difficulty")] public uint Difficulty { get; set; }
public override int GetId()
{
return (int)ActId;
}
public override void Loaded()
{
if (!GameData.ActChallengeData.ContainsKey(GetId()))
{
GameData.ActChallengeData[GetId()] = new List<ActChallengeDataExcel>();
}
GameData.ActChallengeData[GetId()].Add(this);
}
}