Files
DanhengServer-OpenSource/Common/Data/Excel/StoryLineExcel.cs
Somebody f8de1898e1 Feature: Story Line Implementation
- now the mission in Penacony can work further :)
- Notice: NOT TESTED! may many bugs
2024-07-07 22:21:25 +08:00

39 lines
1.0 KiB
C#

using EggLink.DanhengServer.Enums.Mission;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EggLink.DanhengServer.Data.Excel
{
[ResourceEntity("StoryLine.json")]
public class StoryLineExcel : ExcelResource
{
public int StoryLineID { get; set; }
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; }
}
}