mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
27 lines
630 B
C#
27 lines
630 B
C#
using EggLink.DanhengServer.Data.Config.Rogue;
|
|
|
|
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;
|
|
|
|
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;
|
|
}
|
|
} |