mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26: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,35 +1,30 @@
|
||||
using EggLink.DanhengServer.Enums.Mission;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EggLink.DanhengServer.Data.Excel
|
||||
namespace EggLink.DanhengServer.Data.Excel;
|
||||
|
||||
[ResourceEntity("HeartDialScript.json")]
|
||||
public class HeartDialScriptExcel : ExcelResource
|
||||
{
|
||||
[ResourceEntity("HeartDialScript.json")]
|
||||
public class HeartDialScriptExcel : ExcelResource
|
||||
public int ScriptID { get; set; }
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public HeartDialEmoTypeEnum DefaultEmoType { get; set; } = HeartDialEmoTypeEnum.Peace;
|
||||
|
||||
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
||||
public List<HeartDialStepTypeEnum> StepList { get; set; } = [];
|
||||
|
||||
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
||||
public List<HeartDialEmoTypeEnum> MissingEmoList { get; set; } = [];
|
||||
|
||||
public override int GetId()
|
||||
{
|
||||
public int ScriptID { get; set; }
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public HeartDialEmoTypeEnum DefaultEmoType { get; set; } = HeartDialEmoTypeEnum.Peace;
|
||||
|
||||
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
||||
public List<HeartDialStepTypeEnum> StepList { get; set; } = [];
|
||||
|
||||
[JsonProperty(ItemConverterType = typeof(StringEnumConverter))]
|
||||
public List<HeartDialEmoTypeEnum> MissingEmoList { get; set; } = [];
|
||||
|
||||
public override int GetId()
|
||||
{
|
||||
return ScriptID;
|
||||
}
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.HeartDialScriptData[ScriptID] = this;
|
||||
}
|
||||
return ScriptID;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.HeartDialScriptData[ScriptID] = this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user