forked from jo3bingham/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlessings.cs
More file actions
30 lines (25 loc) · 797 Bytes
/
Blessings.cs
File metadata and controls
30 lines (25 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using OXGaming.TibiaAPI.Constants;
namespace OXGaming.TibiaAPI.Network.ServerPackets
{
public class Blessings : ServerPacket
{
public ushort BlessingId { get; set; }
public byte Amount { get; set; }
public Blessings(Client client)
{
Client = client;
PacketType = ServerPacketType.Blessings;
}
public override void ParseFromNetworkMessage(NetworkMessage message)
{
BlessingId = message.ReadUInt16();
Amount = message.ReadByte();
}
public override void AppendToNetworkMessage(NetworkMessage message)
{
message.Write((byte)ServerPacketType.Blessings);
message.Write(BlessingId);
message.Write(Amount);
}
}
}