PSO2SERVER/Server/Protocol/Packets/19-LobbyPacket/19-0F-LobbyMonitorPacket.cs

34 lines
746 B
C#
Raw Normal View History

2024-09-16 17:09:36 +08:00
using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
2024-09-16 17:09:36 +08:00
{
public class LobbyMonitorPacket : Packet
2024-09-16 17:09:36 +08:00
{
2024-12-10 13:33:57 +08:00
public uint Video_id { get; set; } = 0;
2024-09-16 17:09:36 +08:00
2024-12-10 13:33:57 +08:00
public LobbyMonitorPacket(uint video_id)
2024-09-16 17:09:36 +08:00
{
2024-12-10 13:33:57 +08:00
Video_id = video_id;
2024-09-16 17:09:36 +08:00
}
#region implemented abstract members of Packet
public override byte[] Build()
{
2024-09-17 11:29:41 +08:00
var pkt = new PacketWriter();
2024-12-10 13:33:57 +08:00
pkt.Write(Video_id);
2024-09-17 11:29:41 +08:00
return pkt.ToArray();
2024-09-16 17:09:36 +08:00
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x19, 0x0F, PacketFlags.None);
2024-09-16 17:09:36 +08:00
}
#endregion
}
}