mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 13:54:43 +01:00
24 lines
645 B
C#
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);
|
|
}
|
|
} |