mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
35 lines
902 B
C#
35 lines
902 B
C#
using EggLink.DanhengServer.Enums.Avatar;
|
|
using EggLink.DanhengServer.Enums.Quest;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("MultiplePathAvatarConfig.json")]
|
|
public class MultiplePathAvatarConfigExcel : ExcelResource
|
|
{
|
|
public List<Condition> UnlockConditions { get; set; } = [];
|
|
public string ChangeConfigPath { get; set; } = "";
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public GenderTypeEnum Gender { get; set; }
|
|
|
|
public int AvatarID { get; set; }
|
|
public int BaseAvatarID { get; set; }
|
|
|
|
public override int GetId()
|
|
{
|
|
return AvatarID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.MultiplePathAvatarConfigData.Add(AvatarID, this);
|
|
}
|
|
}
|
|
|
|
public class Condition
|
|
{
|
|
public string Param { get; set; } = "";
|
|
public ConditionTypeEnum Type { get; set; }
|
|
} |