public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._entityID.Marshal(dos); dos.WriteUnsignedByte((byte)this._forceId); dos.WriteByte((byte)this._articulationParameters.Count); this._entityType.Marshal(dos); this._alternativeEntityType.Marshal(dos); this._entityLinearVelocity.Marshal(dos); this._entityLocation.Marshal(dos); this._entityOrientation.Marshal(dos); dos.WriteInt((int)this._entityAppearance); this._deadReckoningParameters.Marshal(dos); for (int idx = 0; idx < this._marking.Length; idx++) { dos.WriteByte(this._marking[idx]); } dos.WriteInt((int)this._capabilities); for (int idx = 0; idx < this._articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; aArticulationParameter.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._munitionID.Marshal(dos); this._eventID.Marshal(dos); this._velocity.Marshal(dos); this._locationInWorldCoordinates.Marshal(dos); this._burstDescriptor.Marshal(dos); dos.WriteUnsignedByte((byte)this._detonationResult); dos.WriteUnsignedByte((byte)this._articulationParameters.Count); dos.WriteShort((short)this._pad); for (int idx = 0; idx < this._articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; aArticulationParameter.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }