forked from jo3bingham/TibiaAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDepotTileState.cs
More file actions
35 lines (31 loc) · 1.01 KB
/
DepotTileState.cs
File metadata and controls
35 lines (31 loc) · 1.01 KB
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
35
using OXGaming.TibiaAPI.Constants;
namespace OXGaming.TibiaAPI.Network.ServerPackets
{
public class DepotTileState : ServerPacket
{
public bool EnableShowInMarket { get; set; }
public bool EnableStow { get; set; }
public DepotTileState(Client client)
{
Client = client;
PacketType = ServerPacketType.SpecialContainersAvailable;
}
public override void ParseFromNetworkMessage(NetworkMessage message)
{
EnableStow = message.ReadBool();
if (Client.VersionNumber >= 12087995)
{
EnableShowInMarket = message.ReadBool();
}
}
public override void AppendToNetworkMessage(NetworkMessage message)
{
message.Write((byte)ServerPacketType.SpecialContainersAvailable);
message.Write(EnableStow);
if (Client.VersionNumber >= 12087995)
{
message.Write(EnableShowInMarket);
}
}
}
}