forked from jo3bingham/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBrowseField.cs
More file actions
27 lines (23 loc) · 720 Bytes
/
BrowseField.cs
File metadata and controls
27 lines (23 loc) · 720 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
using OXGaming.TibiaAPI.Constants;
using OXGaming.TibiaAPI.Utilities;
namespace OXGaming.TibiaAPI.Network.ClientPackets
{
public class BrowseField : ClientPacket
{
public Position Position { get; set; }
public BrowseField(Client client)
{
Client = client;
PacketType = ClientPacketType.BrowseField;
}
public override void ParseFromNetworkMessage(NetworkMessage message)
{
Position = message.ReadPosition();
}
public override void AppendToNetworkMessage(NetworkMessage message)
{
message.Write((byte)ClientPacketType.BrowseField);
message.Write(Position);
}
}
}