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