mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
31 lines
770 B
C#
31 lines
770 B
C#
using EggLink.DanhengServer.Enums.Quest;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("QuestData.json")]
|
|
public class QuestDataExcel : ExcelResource
|
|
{
|
|
public int QuestID { get; set; }
|
|
public int QuestType { get; set; }
|
|
public HashName QuestTitle { get; set; } = new();
|
|
public int RewardID { get; set; }
|
|
public int FinishWayID { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public QuestUnlockTypeEnum UnlockType { get; set; }
|
|
|
|
public List<int> UnlockParamList { get; set; } = [];
|
|
|
|
|
|
public override int GetId()
|
|
{
|
|
return QuestID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.QuestDataData.Add(QuestID, this);
|
|
}
|
|
} |