/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { base.Encode(bw); // Header radioRefID.Encode(bw); bw.Write(( ushort )radioNumber); }
/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { base.Encode(bw); // Header firingEntityID.Encode(bw); targetEntityID.Encode(bw); munitionID.Encode(bw); eventID.Encode(bw); }
/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { base.Encode(bw); // Header issuingEntityID.Encode(bw); collidingEntityID.Encode(bw); eventID.Encode(bw); bw.Write(( byte )collisionType); bw.Write(( byte )0); // Padding bw.Write(velocity.x); bw.Write(velocity.y); bw.Write(velocity.z); bw.Write(mass); bw.Write(location.x); bw.Write(location.y); bw.Write(location.z); }
/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { base.Encode(bw); // Header entityID.Encode(bw); bw.Write(( byte )forceID); bw.Write(( byte )variableParameters.NumberOfRecords); entityType.Encode(bw); alternateEntityType.Encode(bw); bw.Write(linearVelocity.x); bw.Write(linearVelocity.y); bw.Write(linearVelocity.z); location.Encode(bw); bw.Write(orientation.x); bw.Write(orientation.y); bw.Write(orientation.z); appearance.Encode(bw); deadReckoningParameter.Encode(bw); marking.Encode(bw); capabilities.Encode(bw); variableParameters.Encode(bw); }
/// <summary> /// Encode data for network transmission. /// </summary> /// <param name="bw"></param> public override void Encode(BinaryWriter bw) { base.Encode(bw); originatingEntityID.Encode(bw); receivingEntityID.Encode(bw); }