forked from jo3bingham/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImpactTracking.cs
More file actions
30 lines (25 loc) · 809 Bytes
/
ImpactTracking.cs
File metadata and controls
30 lines (25 loc) · 809 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 ImpactTracking : ServerPacket
{
public uint Amount { get; set; }
public bool IsDamage { get; set; }
public ImpactTracking(Client client)
{
Client = client;
PacketType = ServerPacketType.ImpactTracking;
}
public override void ParseFromNetworkMessage(NetworkMessage message)
{
IsDamage = message.ReadBool();
Amount = message.ReadUInt32();
}
public override void AppendToNetworkMessage(NetworkMessage message)
{
message.Write((byte)ServerPacketType.ImpactTracking);
message.Write(IsDamage);
message.Write(Amount);
}
}
}