Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new camera change packet.
 /// </summary>
 /// <param name="buffer">A buffer contaning the packet data.</param>
 public IS_CCH(byte[] buffer)
     : this() {
     PacketReader reader = new PacketReader(buffer);
     Size = reader.ReadByte();
     Type = (PacketType)reader.ReadByte();
     ReqI = reader.ReadByte();
     PLID = reader.ReadByte();
     Camera = (ViewIndentifier)reader.ReadByte();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new camera change packet.
        /// </summary>
        /// <param name="buffer">A buffer contaning the packet data.</param>
        public IS_CCH(byte[] buffer)
            : this()
        {
            PacketReader reader = new PacketReader(buffer);

            Size   = reader.ReadByte();
            Type   = (PacketType)reader.ReadByte();
            ReqI   = reader.ReadByte();
            PLID   = reader.ReadByte();
            Camera = (ViewIndentifier)reader.ReadByte();
        }