mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
30 lines
706 B
C#
30 lines
706 B
C#
using EggLink.DanhengServer.Enums.Quest;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("FuncUnlockData.json")]
|
|
public class FuncUnlockDataExcel : ExcelResource
|
|
{
|
|
public int UnlockID { get; set; }
|
|
public List<FuncUnlockCondition> Conditions { get; set; } = [];
|
|
|
|
public override int GetId()
|
|
{
|
|
return UnlockID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.FuncUnlockDataData[UnlockID] = this;
|
|
}
|
|
}
|
|
|
|
public class FuncUnlockCondition
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public ConditionTypeEnum Type { get; set; }
|
|
|
|
public string Param { get; set; } = string.Empty;
|
|
} |