/// <summary>
        /// Reads an array of values from a <see cref="BitStream"/>.
        /// </summary>
        /// <param name="bs">The <see cref="BitStream"/> to read from.</param>
        /// <param name="count">The number of values to read.</param>
        /// <returns>The array of read values.</returns>
        public static short[] ReadShorts(this BitStream bs, int count)
        {
            var ret = new short[count];

            for (var i = 0; i < count; i++)
            {
                ret[i] = bs.ReadShort();
            }
            return(ret);
        }
 /// <summary>
 /// Reads a 16-bit signed integer.
 /// </summary>
 /// <param name="name">Unused by the <see cref="BinaryValueReader"/>.</param>
 /// <returns>Value read from the reader.</returns>
 public short ReadShort(string name)
 {
     return(_reader.ReadShort());
 }
 void RecvSetLevel(IIPSocket conn, BitStream r)
 {
     var level = r.ReadShort();
     UserInfo.Level = level;
 }