Files
DanhengServer-OpenSource/Common/Data/Excel/RogueNPCExcel.cs
2025-05-17 21:18:22 +08:00

28 lines
666 B
C#

using EggLink.DanhengServer.Data.Config.Rogue;
using Newtonsoft.Json;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("RogueNPC.json,RogueTournNPC.json", true)]
public class RogueNPCExcel : ExcelResource
{
public int RogueNPCID { get; set; }
public string NPCJsonPath { get; set; } = string.Empty;
[JsonIgnore] public RogueNPCConfigInfo? RogueNpcConfig { get; set; }
public override int GetId()
{
return RogueNPCID;
}
public override void Loaded()
{
GameData.RogueNPCData.TryAdd(RogueNPCID, this);
}
public bool CanUseInVer(int version)
{
return RogueNpcConfig != null;
}
}