public UInt16 ReadUInt16() { NetException.Assert(m_bitLength - m_readPosition >= 16, c_readOverflowError); uint retval = NetBitWriter.ReadUInt32(m_data, 16, m_readPosition); m_readPosition += 16; return (ushort)retval; }
protected override void Read(NetIncomingMessage message) { x = message.ReadFloat(); y = message.ReadFloat(); rotation = message.ReadUInt16().FromNetworkRotation() * (180f / (float)Math.PI); type = message.ReadByte(); }