PSO2SERVER/Server/Protocol/Packets/0F-ItemPacket/0F-14-SetMesetaPacket.cs

33 lines
671 B
C#

using System;
using PSO2SERVER.Models;
namespace PSO2SERVER.Protocol.Packets
{
public class SetMesetaPacket : Packet
{
public Int64 NewAmount = 0;
public SetMesetaPacket(long newAmount)
{
NewAmount = newAmount;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var writer = new PacketWriter();
writer.Write(NewAmount);
return writer.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x0F, 0x14, PacketFlags.None);
}
#endregion
}
}