using ODMO.Commons.Enums.ClientEnums;
using ODMO.Commons.Writers;
namespace ODMO.Commons.Packets.GameServer
{
public class SyncConditionPacket : PacketWriter
{
private const int PacketNumber = 1070;
///
/// Synchronizes the state condition of the target.
///
/// The handler of the target.
/// The target condition to update.
public SyncConditionPacket(int handler, ConditionEnum condition)
{
Type(PacketNumber);
WriteInt(handler);
WriteInt(condition.GetHashCode());
}
///
/// Synchronizes the state condition of the target for the tamer shop.
///
/// The handler of the target.
/// The target condition to update.
public SyncConditionPacket(int handler, ConditionEnum condition, string shopName)
{
Type(PacketNumber);
WriteInt(handler);
WriteInt(condition.GetHashCode());
WriteString(shopName);
}
}
}