mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled! - Code formatted by Resharper plugin <3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user