27 lines
528 B
C#
27 lines
528 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace RCUHost.Protocols
|
|
{
|
|
/// <summary>
|
|
/// 灯光状态 Packet RCU -> 服务器
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
public struct LightStatusPacket
|
|
{
|
|
/// <summary>
|
|
/// 灯光状态
|
|
/// </summary>
|
|
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 8)]
|
|
public byte[] Status;
|
|
|
|
/// <summary>
|
|
/// CRC16
|
|
/// </summary>
|
|
public ushort CRC;
|
|
}
|
|
}
|