mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 06:44:41 +01:00
Init enter game
This commit is contained in:
24
Common/Data/Excel/ActChallengeDataExcel.cs
Normal file
24
Common/Data/Excel/ActChallengeDataExcel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user