Files
DanhengServer-OpenSource/Common/Data/Excel/InteractConfigExcel.cs
2025-04-13 22:10:38 +08:00

27 lines
680 B
C#

using EggLink.DanhengServer.Enums.Scene;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("InteractConfig.json")]
public class InteractConfigExcel : ExcelResource
{
public int InteractID { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public PropStateEnum SrcState { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public PropStateEnum TargetState { get; set; } = PropStateEnum.Closed;
public override int GetId()
{
return InteractID;
}
public override void Loaded()
{
GameData.InteractConfigData.Add(InteractID, this);
}
}