public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._entityID.Unmarshal(dis); this._padding1 = dis.ReadByte(); this._numberOfVariableParameters = dis.ReadUnsignedByte(); this._entityLinearVelocity.Unmarshal(dis); this._entityLocation.Unmarshal(dis); this._entityOrientation.Unmarshal(dis); this._entityAppearance = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) { VariableParameter anX = new VariableParameter(); anX.Unmarshal(dis); this._variableParameters.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._explodingEntityID.Unmarshal(dis); this._eventID.Unmarshal(dis); this._velocity.Unmarshal(dis); this._locationInWorldCoordinates.Unmarshal(dis); this._descriptor.Unmarshal(dis); this._locationOfEntityCoordinates.Unmarshal(dis); this._detonationResult = dis.ReadUnsignedByte(); this._numberOfVariableParameters = dis.ReadUnsignedByte(); this._pad = dis.ReadUnsignedShort(); for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) { VariableParameter anX = new VariableParameter(); anX.Unmarshal(dis); this._variableParameters.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }