Ejemplo n.º 1
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._emittingEntityID.Marshal(dos);
                    this._eventID.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._stateUpdateIndicator);
                    dos.WriteUnsignedByte((byte)this._systems.Count);
                    dos.WriteUnsignedShort((ushort)this._paddingForEmissionsPdu);
                    dos.WriteUnsignedByte((byte)this._systemDataLength);
                    dos.WriteUnsignedByte((byte)this._numberOfBeams);
                    this._emitterSystem.Marshal(dos);
                    this._location.Marshal(dos);

                    for (int idx = 0; idx < this._systems.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._systems[idx];
                        aVector3Float.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Ejemplo n.º 2
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._radioEntityType.Marshal(dos);
                    dos.WriteUnsignedByte((byte)this._transmitState);
                    dos.WriteUnsignedByte((byte)this._inputSource);
                    dos.WriteUnsignedShort((ushort)this._padding1);
                    this._antennaLocation.Marshal(dos);
                    this._relativeAntennaLocation.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._antennaPatternType);
                    dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count);
                    dos.WriteUnsignedLong((ulong)this._frequency);
                    dos.WriteFloat((float)this._transmitFrequencyBandwidth);
                    dos.WriteFloat((float)this._power);
                    this._modulationType.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._cryptoSystem);
                    dos.WriteUnsignedShort((ushort)this._cryptoKeyId);
                    dos.WriteUnsignedByte((byte)this._modulationParametersList.Count);
                    dos.WriteUnsignedShort((ushort)this._padding2);
                    dos.WriteUnsignedByte((byte)this._padding3);

                    for (int idx = 0; idx < this._modulationParametersList.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx];
                        aVector3Float.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._antennaPatternList.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx];
                        aVector3Float.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Ejemplo n.º 3
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._emittingEntityID.Marshal(dos);
                    this._eventID.Marshal(dos);
                    dos.WriteByte((byte)this._stateChangeIndicator);
                    dos.WriteByte((byte)this._pad);
                    dos.WriteUnsignedShort((ushort)this._passiveParameterIndex);
                    dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration);
                    dos.WriteUnsignedByte((byte)this._shaftRPMs.Count);
                    dos.WriteUnsignedByte((byte)this._apaData.Count);
                    dos.WriteUnsignedByte((byte)this._emitterSystems.Count);

                    for (int idx = 0; idx < this._shaftRPMs.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._shaftRPMs[idx];
                        aVector3Float.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._apaData.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._apaData[idx];
                        aVector3Float.Marshal(dos);
                    }

                    for (int idx = 0; idx < this._emitterSystems.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._emitterSystems[idx];
                        aVector3Float.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }
Ejemplo n.º 4
0
        public override void Marshal(DataOutputStream dos)
        {
            base.Marshal(dos);
            if (dos != null)
            {
                try
                {
                    this._minefieldID.Marshal(dos);
                    this._requestingEntityID.Marshal(dos);
                    dos.WriteUnsignedShort((ushort)this._minefieldSequenceNumbeer);
                    dos.WriteUnsignedByte((byte)this._requestID);
                    dos.WriteUnsignedByte((byte)this._pduSequenceNumber);
                    dos.WriteUnsignedByte((byte)this._numberOfPdus);
                    dos.WriteUnsignedByte((byte)this._mineLocation.Count);
                    dos.WriteUnsignedByte((byte)this._sensorTypes.Count);
                    dos.WriteUnsignedByte((byte)this._pad2);
                    dos.WriteUnsignedInt((uint)this._dataFilter);
                    this._mineType.Marshal(dos);

                    for (int idx = 0; idx < this._sensorTypes.Count; idx++)
                    {
                        TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx];
                        aTwoByteChunk.Marshal(dos);
                    }
                    dos.WriteUnsignedByte((byte)this._pad3);

                    for (int idx = 0; idx < this._mineLocation.Count; idx++)
                    {
                        Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx];
                        aVector3Float.Marshal(dos);
                    }
                }
                catch (Exception e)
                {
#if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
#endif
                    this.OnException(e);
                }
            }
        }