mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
32 lines
801 B
C#
32 lines
801 B
C#
using EggLink.DanhengServer.Enums.Rogue;
|
|
using EggLink.DanhengServer.Proto;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Custom;
|
|
|
|
public class BaseRogueBuffExcel : ExcelResource
|
|
{
|
|
public int MazeBuffID { get; set; }
|
|
public int MazeBuffLevel { get; set; }
|
|
public int RogueBuffType { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public RogueBuffCategoryEnum RogueBuffCategory { get; set; }
|
|
|
|
public int RogueBuffTag { get; set; }
|
|
|
|
public override int GetId()
|
|
{
|
|
return MazeBuffID * 100 + MazeBuffLevel;
|
|
}
|
|
|
|
public RogueCommonBuff ToProto()
|
|
{
|
|
return new RogueCommonBuff
|
|
{
|
|
BuffId = (uint)MazeBuffID,
|
|
BuffLevel = (uint)MazeBuffLevel
|
|
};
|
|
}
|
|
} |