PSO2SERVER/Server/Protocol/Packets/1F-DailyOrderPacket/1F-03-OrderListPacket.cs

40 lines
1014 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;
2024-12-06 19:47:18 +08:00
using static PSO2SERVER.Models.Orders;
2024-09-16 17:09:36 +08:00
namespace PSO2SERVER.Protocol.Packets
2024-09-16 17:09:36 +08:00
{
public class OrderListPacket : Packet
2024-09-16 17:09:36 +08:00
{
2024-12-06 19:47:18 +08:00
public ObjectHeader user { get; set; } = new ObjectHeader();
public ClientOrder[] orders { get; set; } = new ClientOrder[100];
public uint unk1 { get; set; }
public uint unk2 { get; set; }
2024-09-16 17:09:36 +08:00
public OrderListPacket()
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-06 19:47:18 +08:00
pkt.WriteObjectHeader(user);
pkt.WriteStructArray(orders);
pkt.Write(unk1);
pkt.Write(unk2);
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(0x1F, 0x03, PacketFlags.None);
2024-09-16 17:09:36 +08:00
}
#endregion
}
}