forked from jo3bingham/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItemLooted.cs
More file actions
31 lines (26 loc) · 867 Bytes
/
ItemLooted.cs
File metadata and controls
31 lines (26 loc) · 867 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
31
using OXGaming.TibiaAPI.Appearances;
using OXGaming.TibiaAPI.Constants;
namespace OXGaming.TibiaAPI.Network.ServerPackets
{
public class ItemLooted : ServerPacket
{
public ObjectInstance Item { get; set; }
public string ItemDescription { get; set; }
public ItemLooted(Client client)
{
Client = client;
PacketType = ServerPacketType.ItemLooted;
}
public override void ParseFromNetworkMessage(NetworkMessage message)
{
Item = message.ReadObjectInstance();
ItemDescription = message.ReadString();
}
public override void AppendToNetworkMessage(NetworkMessage message)
{
message.Write((byte)ServerPacketType.ItemLooted);
message.Write(Item);
message.Write(ItemDescription);
}
}
}