mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 13:24:34 +01:00
Init enter game
This commit is contained in:
19
Common/Data/Excel/CustomHeadDataExcel.cs
Normal file
19
Common/Data/Excel/CustomHeadDataExcel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace KianaBH.Data.Excel;
|
||||
|
||||
[ResourceEntity("CustomHeadData.json")]
|
||||
public class CustomHeadDataExcel : ExcelResource
|
||||
{
|
||||
[JsonPropertyName("headID")] public uint HeadID { get; set; }
|
||||
|
||||
public override int GetId()
|
||||
{
|
||||
return (int)HeadID;
|
||||
}
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.CustomHeadData.Add(GetId(), this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user