Files
DanhengServer-OpenSource/Common/Data/Excel/MazeBuffExcel.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

29 lines
551 B
C#

using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("MazeBuff.json")]
public class MazeBuffExcel : ExcelResource
{
public int ID { get; set; }
public int Lv { get; set; }
public override int GetId()
{
return ID * 10 + Lv;
}
public override void Loaded()
{
GameData.MazeBuffData.Add(GetId(), this);
}
public BattleBuff ToProto()
{
return new BattleBuff
{
Id = (uint)ID,
Level = (uint)Lv
};
}
}