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); this._locationInEntityCoordinates.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 DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._entityID.Marshal(dos); dos.WriteByte((byte)this._padding1); dos.WriteUnsignedByte((byte)this._articulationParameters.Count); this._entityLinearVelocity.Marshal(dos); this._entityLocation.Marshal(dos); this._entityOrientation.Marshal(dos); dos.WriteInt((int)this._entityAppearance); for (int idx = 0; idx < this._articulationParameters.Count; idx++) { ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; aArticulationParameter.Marshal(dos); } } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }