mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
Fix Basic Rogue Event
This commit is contained in:
28
Common/Data/Excel/RogueNPCExcel.cs
Normal file
28
Common/Data/Excel/RogueNPCExcel.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using EggLink.DanhengServer.Data.Config;
|
||||
using EggLink.DanhengServer.Data.Config.Rogue;
|
||||
|
||||
namespace EggLink.DanhengServer.Data.Excel;
|
||||
|
||||
[ResourceEntity("RogueNPC.json")]
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user