mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
using EggLink.DanhengServer.Enums.RogueMagic;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("RogueMagicUnit.json")]
|
|
public class RogueMagicUnitExcel : ExcelResource
|
|
{
|
|
public int MagicUnitID { get; set; }
|
|
public int MagicUnitLevel { get; set; }
|
|
public RogueMagicUnitCategoryEnum MagicUnitCategory { get; set; }
|
|
public RogueMagicMountTypeEnum MagicUnitType { get; set; }
|
|
|
|
public int UnlockID { get; set; }
|
|
|
|
//public FixPoint UnitBasicPower{ get; set; }
|
|
public int MagicUnitMazeBuffID { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public RogueMagicStyleTypeEnum StyleType { get; set; }
|
|
|
|
//public TextID MagicUnitDesc { get; set; }
|
|
//public TextID MagicUnitSimpleDesc { get; set; }
|
|
public List<int> ExtraEffectID { get; set; } = [];
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public RogueMagicScepterFuncTypeEnum FuncType { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public RogueMagicRangeTypeEnum LimitRange { get; set; }
|
|
|
|
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
|
public List<RogueMagicRangeTypeEnum> AttachRangeTypeList { get; set; } = [];
|
|
|
|
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
|
public List<RogueMagicEffectTypeEnum> EffectTypeList { get; set; } = [];
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public RogueMagicSpecialTypeEnum SpecialType { get; set; }
|
|
|
|
public bool IsPassiveUnit { get; set; }
|
|
public bool IsActiveUnit { get; set; }
|
|
|
|
public override int GetId()
|
|
{
|
|
return MagicUnitID * 100 + MagicUnitLevel;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.RogueMagicUnitData.Add(GetId(), this);
|
|
}
|
|
} |