forked from jo3bingham/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditList.cs
More file actions
34 lines (28 loc) · 913 Bytes
/
EditList.cs
File metadata and controls
34 lines (28 loc) · 913 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
32
33
34
using OXGaming.TibiaAPI.Constants;
namespace OXGaming.TibiaAPI.Network.ServerPackets
{
public class EditList : ServerPacket
{
public string Text { get; set; }
public uint WindowId { get; set; }
public byte WindowType { get; set; }
public EditList(Client client)
{
Client = client;
PacketType = ServerPacketType.EditList;
}
public override void ParseFromNetworkMessage(NetworkMessage message)
{
WindowType = message.ReadByte();
WindowId = message.ReadUInt32();
Text = message.ReadString();
}
public override void AppendToNetworkMessage(NetworkMessage message)
{
message.Write((byte)ServerPacketType.EditList);
message.Write(WindowType);
message.Write(WindowId);
message.Write(Text);
}
}
}