Feature:Asynchronous Operation & Formatting Code

- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
This commit is contained in:
Somebody
2024-07-22 17:12:03 +08:00
parent e983375620
commit 87d228eb79
793 changed files with 34764 additions and 40190 deletions

View File

@@ -1,28 +1,27 @@
using EggLink.DanhengServer.Enums.Scene;
using System.Text.Json.Serialization;
using EggLink.DanhengServer.Enums.Scene;
using Newtonsoft.Json.Converters;
using System.Text.Json.Serialization;
namespace EggLink.DanhengServer.Data.Excel
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("InteractConfig.json")]
public class InteractConfigExcel : ExcelResource
{
[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()
{
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);
}
return InteractID;
}
}
public override void Loaded()
{
GameData.InteractConfigData.Add(InteractID, this);
}
}