/// <summary> /// Initializes a new instance of <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/> class. /// </summary> /// <param name="data"> /// Data of the new <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/>. /// </param> /// <param name="direction"> /// <see cref="Kamilla.Network.TransferDirection"/> of /// the new <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/>. /// </param> /// <param name="flags"> /// The <see cref="Kamilla.Network.PacketFlags"/> of /// the new <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/>. /// </param> /// <param name="wowFlags"> /// The <see cref="Kamilla.Network.Protocols.Wow.WowPacketFlags"/> of /// the new <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/>. /// </param> /// <param name="arrivalTicks"> /// Number of milliseconds passed from the Operation System start to the packet arrival event. /// </param> /// <param name="arrivalTime"> /// An instance of <see cref="System.DateTime"/> representing the moment when /// the packet <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/> arrived. /// </param> /// <param name="opcode"> /// The opcode of the new <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/>. /// </param> /// <param name="connectionId"> /// The connection id of the new <see cref="Kamilla.Network.Protocols.Wow.WowPacket"/>. /// </param> public WowPacket(byte[] data, TransferDirection direction, PacketFlags flags, WowPacketFlags wowFlags, DateTime arrivalTime, uint arrivalTicks, uint opcode, int connectionId) : base(data, direction, flags, arrivalTime, arrivalTicks) { m_opcode = opcode; m_connectionId = connectionId; m_wowFlags = wowFlags; }
public bool HasFlags(WowPacketFlags flags) { return (m_wowFlags & flags) != 0; }
public bool HasFlags(WowPacketFlags flags) { return((m_wowFlags & flags) != 0); }