2024-09-10 00:31:40 +08:00
|
|
|
|
using System;
|
2024-09-10 01:13:20 +08:00
|
|
|
|
using PSO2SERVER.Models;
|
2024-09-10 00:31:40 +08:00
|
|
|
|
|
2024-11-27 18:05:53 +08:00
|
|
|
|
namespace PSO2SERVER.Protocol.Packets
|
2024-09-10 00:31:40 +08:00
|
|
|
|
{
|
|
|
|
|
public class SetMesetaPacket : Packet
|
|
|
|
|
{
|
|
|
|
|
public Int64 NewAmount = 0;
|
|
|
|
|
|
2024-12-11 03:39:12 +08:00
|
|
|
|
public SetMesetaPacket(long newAmount)
|
|
|
|
|
{
|
|
|
|
|
NewAmount = newAmount;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-10 00:31:40 +08:00
|
|
|
|
#region implemented abstract members of Packet
|
|
|
|
|
|
|
|
|
|
public override byte[] Build()
|
|
|
|
|
{
|
|
|
|
|
var writer = new PacketWriter();
|
|
|
|
|
|
|
|
|
|
writer.Write(NewAmount);
|
|
|
|
|
|
|
|
|
|
return writer.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override PacketHeader GetHeader()
|
|
|
|
|
{
|
2024-11-24 23:40:50 +08:00
|
|
|
|
return new PacketHeader(0x0F, 0x14, PacketFlags.None);
|
2024-09-10 00:31:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|