public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += this._entityID.GetMarshalledSize();                // this._entityID
            marshalSize += 1;                                                 // this._forceId
            marshalSize += 1;                                                 // this._numberOfArticulationParameters
            marshalSize += this._entityType.GetMarshalledSize();              // this._entityType
            marshalSize += this._alternativeEntityType.GetMarshalledSize();   // this._alternativeEntityType
            marshalSize += this._entityLinearVelocity.GetMarshalledSize();    // this._entityLinearVelocity
            marshalSize += this._entityLocation.GetMarshalledSize();          // this._entityLocation
            marshalSize += this._entityOrientation.GetMarshalledSize();       // this._entityOrientation
            marshalSize += 4;                                                 // this._entityAppearance
            marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters
            marshalSize += this._marking.GetMarshalledSize();                 // this._marking
            marshalSize += 4;                                                 // this._capabilities
            for (int idx = 0; idx < this._articulationParameters.Count; idx++)
            {
                ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }
Beispiel #2
0
        public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += this._entityID.GetMarshalledSize();             // this._entityID
            marshalSize += 1;                                              // this._padding1
            marshalSize += 1;                                              // this._numberOfArticulationParameters
            marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity
            marshalSize += this._entityLocation.GetMarshalledSize();       // this._entityLocation
            marshalSize += this._entityOrientation.GetMarshalledSize();    // this._entityOrientation
            marshalSize += 4;                                              // this._entityAppearance
            for (int idx = 0; idx < this._articulationParameters.Count; idx++)
            {
                ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }
Beispiel #3
0
        public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += this._munitionID.GetMarshalledSize();                  // this._munitionID
            marshalSize += this._eventID.GetMarshalledSize();                     // this._eventID
            marshalSize += this._velocity.GetMarshalledSize();                    // this._velocity
            marshalSize += this._locationInWorldCoordinates.GetMarshalledSize();  // this._locationInWorldCoordinates
            marshalSize += this._burstDescriptor.GetMarshalledSize();             // this._burstDescriptor
            marshalSize += this._locationInEntityCoordinates.GetMarshalledSize(); // this._locationInEntityCoordinates
            marshalSize += 1;                                                     // this._detonationResult
            marshalSize += 1;                                                     // this._numberOfArticulationParameters
            marshalSize += 2;                                                     // this._pad
            for (int idx = 0; idx < this._articulationParameters.Count; idx++)
            {
                ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }