/// <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(); }
/// <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); }
/// <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()); }
/// <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); }