PSO2SERVER/Server/Packets/PSOPackets/SetCurrencyPacket.cs
2024-09-11 17:13:00 +08:00

40 lines
868 B
C#

using PSO2SERVER.Models;
namespace PSO2SERVER.Packets.PSOPackets
{
public class SetCurrencyPacket : Packet
{
public int NewAcAmount = 0;
public int NewFunAmount = 0;
#region implemented abstract members of Packet
public override byte[] Build()
{
var writer = new PacketWriter();
// AC
writer.Write(NewAcAmount);
// Padding?
for (var i = 0; i < 20; i++)
writer.Write((byte) 0);
// FUN
writer.Write(NewFunAmount);
// Padding?
for (var i = 0; i < 4; i++)
writer.Write((byte) 0);
return writer.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x11, 0x1C);
}
#endregion
}
}