Skip to content

Commit

Permalink
添加指令包结构
Browse files Browse the repository at this point in the history
  • Loading branch information
ape-byte committed Jun 19, 2023
1 parent dc2ed5a commit 72e25b5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions BarrageGrab/JsonEntity/Command.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BarrageGrab.JsonEntity
{
public enum CommandCode
{
/// <summary>
/// 空指令
/// </summary>
None = 0,

/// <summary>
/// 安全关闭程序
/// </summary>
Close = 1,
}

public class Command
{
/// <summary>
/// 指令标识
/// </summary>
public CommandCode Cmd { get; set; }

/// <summary>
/// 附加数据
/// </summary>
public object Data { get; set; }
}
}

0 comments on commit 72e25b5

Please sign in to comment.