Exemplo n.º 1
0
        public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += this._entityID.GetMarshalledSize();                // this._entityID
            marshalSize += 1;                                                 // this._forceId
            marshalSize += 1;                                                 // this._numberOfVariableParameters
            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._variableParameters.Count; idx++)
            {
                VariableParameter listElement = (VariableParameter)this._variableParameters[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }
Exemplo n.º 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._numberOfVariableParameters
            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._variableParameters.Count; idx++)
            {
                VariableParameter listElement = (VariableParameter)this._variableParameters[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }
Exemplo n.º 3
0
        public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += this._explodingEntityID.GetMarshalledSize();           // this._explodingEntityID
            marshalSize += this._eventID.GetMarshalledSize();                     // this._eventID
            marshalSize += this._velocity.GetMarshalledSize();                    // this._velocity
            marshalSize += this._locationInWorldCoordinates.GetMarshalledSize();  // this._locationInWorldCoordinates
            marshalSize += this._descriptor.GetMarshalledSize();                  // this._descriptor
            marshalSize += this._locationOfEntityCoordinates.GetMarshalledSize(); // this._locationOfEntityCoordinates
            marshalSize += 1;                                                     // this._detonationResult
            marshalSize += 1;                                                     // this._numberOfVariableParameters
            marshalSize += 2;                                                     // this._pad
            for (int idx = 0; idx < this._variableParameters.Count; idx++)
            {
                VariableParameter listElement = (VariableParameter)this._variableParameters[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }