mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
24 lines
645 B
C#
24 lines
645 B
C#
using EggLink.DanhengServer.Enums.Server;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Custom;
|
|
|
|
public class CustomPacketQueueConfig
|
|
{
|
|
public List<PacketActionData> Queue { get; set; } = [];
|
|
}
|
|
|
|
public class PacketActionData
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public PacketActionTypeEnum Action { get; set; }
|
|
public PacketActionParamData Param { get; set; } = new();
|
|
}
|
|
|
|
public class PacketActionParamData
|
|
{
|
|
public string PacketName { get; set; } = "";
|
|
public string PacketData { get; set; } = "";
|
|
public bool InterruptFormalHandler { get; set; } = false;
|
|
} |