/// <summary> /// Creates a new penalty packet. /// </summary> /// <param name="buffer">A buffer contaning the packet data.</param> public IS_PEN(byte[] buffer) : this() { PacketReader reader = new PacketReader(buffer); Size = reader.ReadByte(); Type = (PacketType)reader.ReadByte(); ReqI = reader.ReadByte(); PLID = reader.ReadByte(); OldPen = (PenaltyValue)reader.ReadByte(); NewPen = (PenaltyValue)reader.ReadByte(); Reason = (PenaltyReason)reader.ReadByte(); }
/// <summary> /// Creates a new penalty packet. /// </summary> /// <param name="buffer">A buffer contaning the packet data.</param> public IS_PEN(byte[] buffer) : this() { PacketReader reader = new PacketReader(buffer); Size = reader.ReadByte(); Type = (PacketType)reader.ReadByte(); ReqI = reader.ReadByte(); PLID = reader.ReadByte(); OldPen = (PenaltyValue)reader.ReadByte(); NewPen = (PenaltyValue)reader.ReadByte(); Reason = (PenaltyReason)reader.ReadByte(); }