30 lines
565 B
C#
30 lines
565 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 RoomStatusChangedPacket
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 房态:
|
|||
|
|
/// 待租 => 0x00,
|
|||
|
|
/// 已租 => 0x01,
|
|||
|
|
/// 已预定 => 0x02,
|
|||
|
|
/// 维修 => 0x03
|
|||
|
|
/// </summary>
|
|||
|
|
public byte Status;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// CRC16校验
|
|||
|
|
/// </summary>
|
|||
|
|
public ushort CRC;
|
|||
|
|
}
|
|||
|
|
}
|