Files
DanhengServer-OpenSource/Common/Data/Excel/StoryLineExcel.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
893 B
C#

using EggLink.DanhengServer.Enums.Mission;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("StoryLine.json")]
public class StoryLineExcel : ExcelResource
{
public int StoryLineID { get; set; }
public StoryLineCondition BeginCondition { get; set; } = new();
public StoryLineCondition EndCondition { get; set; } = new();
public int InitEntranceID { get; set; }
public int InitGroupID { get; set; }
public int InitAnchorID { get; set; }
public override int GetId()
{
return StoryLineID;
}
public override void Loaded()
{
GameData.StoryLineData[StoryLineID] = this;
}
}
public class StoryLineCondition
{
[JsonConverter(typeof(StringEnumConverter))]
public StoryLineConditionTypeEnum Type { get; set; } = new();
public int Param { get; set; }
}