mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
29 lines
766 B
C#
29 lines
766 B
C#
using EggLink.DanhengServer.Enums.Scene;
|
|
using Newtonsoft.Json.Converters;
|
|
using System.Text.Json.Serialization;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|