Files
DanhengServer-OpenSource/Common/Data/Excel/DialogueEventExcel.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

34 lines
873 B
C#

using EggLink.DanhengServer.Enums.Rogue;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("DialogueEvent.json")]
public class DialogueEventExcel : ExcelResource
{
public int EventID { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public DialogueEventTypeEnum RogueEffectType { get; set; }
public List<int> RogueEffectParamList { get; set; } = [];
[JsonConverter(typeof(StringEnumConverter))]
public DialogueEventCostTypeEnum CostType { get; set; }
public List<int> CostParamList { get; set; } = [];
public int DynamicContentID { get; set; }
public int DescValue { get; set; }
public override int GetId()
{
return EventID;
}
public override void Loaded()
{
GameData.DialogueEventData.Add(EventID, this);
}
}