public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._emittingEntityID.Unmarshal(dis); this._eventID.Unmarshal(dis); this._stateUpdateIndicator = dis.ReadUnsignedByte(); this._numberOfSystems = dis.ReadUnsignedByte(); this._paddingForEmissionsPdu = dis.ReadUnsignedShort(); this._systemDataLength = dis.ReadUnsignedByte(); this._numberOfBeams = dis.ReadUnsignedByte(); this._emitterSystem.Unmarshal(dis); this._location.Unmarshal(dis); for (int idx = 0; idx < this.NumberOfSystems; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._systems.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._emittingEntityID.Unmarshal(dis); this._eventID.Unmarshal(dis); this._stateChangeIndicator = dis.ReadByte(); this._pad = dis.ReadByte(); this._passiveParameterIndex = dis.ReadUnsignedShort(); this._propulsionPlantConfiguration = dis.ReadUnsignedByte(); this._numberOfShafts = dis.ReadUnsignedByte(); this._numberOfAPAs = dis.ReadUnsignedByte(); this._numberOfUAEmitterSystems = dis.ReadUnsignedByte(); for (int idx = 0; idx < this.NumberOfShafts; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._shaftRPMs.Add(anX); } ; for (int idx = 0; idx < this.NumberOfAPAs; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._apaData.Add(anX); } ; for (int idx = 0; idx < this.NumberOfUAEmitterSystems; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._emitterSystems.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._radioEntityType.Unmarshal(dis); this._transmitState = dis.ReadUnsignedByte(); this._inputSource = dis.ReadUnsignedByte(); this._padding1 = dis.ReadUnsignedShort(); this._antennaLocation.Unmarshal(dis); this._relativeAntennaLocation.Unmarshal(dis); this._antennaPatternType = dis.ReadUnsignedShort(); this._antennaPatternCount = dis.ReadUnsignedShort(); this._frequency = dis.ReadUnsignedLong(); this._transmitFrequencyBandwidth = dis.ReadFloat(); this._power = dis.ReadFloat(); this._modulationType.Unmarshal(dis); this._cryptoSystem = dis.ReadUnsignedShort(); this._cryptoKeyId = dis.ReadUnsignedShort(); this._modulationParameterCount = dis.ReadUnsignedByte(); this._padding2 = dis.ReadUnsignedShort(); this._padding3 = dis.ReadUnsignedByte(); for (int idx = 0; idx < this.ModulationParameterCount; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._modulationParametersList.Add(anX); } ; for (int idx = 0; idx < this.AntennaPatternCount; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._antennaPatternList.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._minefieldID.Unmarshal(dis); this._requestingEntityID.Unmarshal(dis); this._minefieldSequenceNumbeer = dis.ReadUnsignedShort(); this._requestID = dis.ReadUnsignedByte(); this._pduSequenceNumber = dis.ReadUnsignedByte(); this._numberOfPdus = dis.ReadUnsignedByte(); this._numberOfMinesInThisPdu = dis.ReadUnsignedByte(); this._numberOfSensorTypes = dis.ReadUnsignedByte(); this._pad2 = dis.ReadUnsignedByte(); this._dataFilter = dis.ReadUnsignedInt(); this._mineType.Unmarshal(dis); for (int idx = 0; idx < this.NumberOfSensorTypes; idx++) { TwoByteChunk anX = new TwoByteChunk(); anX.Unmarshal(dis); this._sensorTypes.Add(anX); } ; this._pad3 = dis.ReadUnsignedByte(); for (int idx = 0; idx < this.NumberOfMinesInThisPdu; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._mineLocation.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }