示例#1
0
        /// <summary>
        /// Decode network data.
        /// </summary>
        /// <param name="h"></param>
        /// <param name="br"></param>
        public virtual void Decode(Header h, BinaryReader br)
        {
            // Copy header values.
            Clone(h);

            radioRefID.Decode(br);
            radioNumber = br.ReadUInt16();
        }
示例#2
0
        /// <summary>
        /// Decode network data.
        /// </summary>
        /// <param name="h"></param>
        /// <param name="br"></param>
        public virtual void Decode(Header h, BinaryReader br)
        {
            // Copy header values.
            Clone(h);

            firingEntityID.Decode(br);
            targetEntityID.Decode(br);
            munitionID.Decode(br);
            eventID.Decode(br);
        }
示例#3
0
        /// <summary>
        /// Decode network data.
        /// </summary>
        /// <param name="h"></param>
        /// <param name="br"></param>
        public virtual void Decode(Header h, BinaryReader br)
        {
            // Copy header values.
            Clone(h);

            issuingEntityID.Decode(br);
            collidingEntityID.Decode(br);
            eventID.Decode(br);
            collisionType = ( CollisionType )br.ReadByte();
            br.BaseStream.Seek(1, SeekOrigin.Current);   // Skip padding
            velocity.Set(br.ReadSingle(), br.ReadSingle(), br.ReadSingle());
            mass = br.ReadSingle();
            location.Set(br.ReadSingle(), br.ReadSingle(), br.ReadSingle());
        }
示例#4
0
        /// <summary>
        /// Decode network data.
        /// </summary>
        /// <param name="h"></param>
        /// <param name="br"></param>
        public virtual void Decode(Header h, BinaryReader br)
        {
            // Copy header values.
            Clone(h);

            entityID.Decode(br);
            forceID = ( ForceID )br.ReadByte();
            byte numOfArticulationParams = br.ReadByte();

            entityType.Decode(br);
            alternateEntityType.Decode(br);
            linearVelocity.Set(br.ReadSingle(), br.ReadSingle(), br.ReadSingle());
            location.Decode(br);
            orientation.Set(br.ReadSingle(), br.ReadSingle(), br.ReadSingle());
            appearance.Decode(br);
            deadReckoningParameter.Decode(br);
            marking.Decode(br);
            capabilities.Decode(br);
            variableParameters.Decode(br, numOfArticulationParams);
        }
 /// <summary>
 /// Decode network data.
 /// </summary>
 /// <param name="h"></param>
 /// <param name="br"></param>
 public virtual void Decode(Header h, BinaryReader br)
 {
     Clone(h);
     originatingEntityID.Decode(br);
     receivingEntityID.Decode(br);
 }