mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 13:54:43 +01:00
Init enter game
This commit is contained in:
27
Common/Data/Excel/AvatarDataExcel.cs
Normal file
27
Common/Data/Excel/AvatarDataExcel.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace KianaBH.Data.Excel;
|
||||
|
||||
[ResourceEntity("AvatarData.json")]
|
||||
public class AvatarDataExcel : ExcelResource
|
||||
{
|
||||
[JsonPropertyName("avatarID")] public int AvatarID { get; set; }
|
||||
[JsonPropertyName("unlockStar")] public int UnlockStar { get; set; }
|
||||
[JsonPropertyName("initialWeapon")] public int InitialWeapon { get; set; }
|
||||
[JsonPropertyName("skillList")] public List<int> SkillList { get; set; } = [];
|
||||
public int DefaultDressId { get; set; }
|
||||
|
||||
public override int GetId()
|
||||
{
|
||||
return AvatarID;
|
||||
}
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
if (AvatarID != 316 && (AvatarID < 9000 || AvatarID > 20000))
|
||||
{
|
||||
GameData.AvatarData.Add(AvatarID, this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user