public override int GetMarshalledSize() { int marshalSize = 0; marshalSize = base.GetMarshalledSize(); marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID marshalSize += 2; // this._minefieldSequence marshalSize += 1; // this._forceID marshalSize += 1; // this._numberOfPerimeterPoints marshalSize += this._minefieldType.GetMarshalledSize(); // this._minefieldType marshalSize += 2; // this._numberOfMineTypes marshalSize += this._minefieldLocation.GetMarshalledSize(); // this._minefieldLocation marshalSize += this._minefieldOrientation.GetMarshalledSize(); // this._minefieldOrientation marshalSize += 2; // this._appearance marshalSize += 2; // this._protocolMode for (int idx = 0; idx < this._perimeterPoints.Count; idx++) { Point listElement = (Point)this._perimeterPoints[idx]; marshalSize += listElement.GetMarshalledSize(); } for (int idx = 0; idx < this._mineType.Count; idx++) { EntityType listElement = (EntityType)this._mineType[idx]; marshalSize += listElement.GetMarshalledSize(); } return(marshalSize); }
public override int GetMarshalledSize() { int marshalSize = 0; marshalSize = base.GetMarshalledSize(); marshalSize += this._aggregateID.GetMarshalledSize(); // this._aggregateID marshalSize += 1; // this._forceID marshalSize += 1; // this._aggregateState marshalSize += this._aggregateType.GetMarshalledSize(); // this._aggregateType marshalSize += 4; // this._formation marshalSize += this._aggregateMarking.GetMarshalledSize(); // this._aggregateMarking marshalSize += this._dimensions.GetMarshalledSize(); // this._dimensions marshalSize += this._orientation.GetMarshalledSize(); // this._orientation marshalSize += this._centerOfMass.GetMarshalledSize(); // this._centerOfMass marshalSize += this._velocity.GetMarshalledSize(); // this._velocity marshalSize += 2; // this._numberOfDisAggregates marshalSize += 2; // this._numberOfDisEntities marshalSize += 2; // this._numberOfSilentAggregateTypes marshalSize += 2; // this._numberOfSilentEntityTypes for (int idx = 0; idx < this._aggregateIDList.Count; idx++) { AggregateID listElement = (AggregateID)this._aggregateIDList[idx]; marshalSize += listElement.GetMarshalledSize(); } for (int idx = 0; idx < this._entityIDList.Count; idx++) { EntityID listElement = (EntityID)this._entityIDList[idx]; marshalSize += listElement.GetMarshalledSize(); } marshalSize += 1; // this._pad2 for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) { EntityType listElement = (EntityType)this._silentAggregateSystemList[idx]; marshalSize += listElement.GetMarshalledSize(); } for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) { EntityType listElement = (EntityType)this._silentEntitySystemList[idx]; marshalSize += listElement.GetMarshalledSize(); } marshalSize += 4; // this._numberOfVariableDatumRecords for (int idx = 0; idx < this._variableDatumList.Count; idx++) { VariableDatum listElement = (VariableDatum)this._variableDatumList[idx]; marshalSize += listElement.GetMarshalledSize(); } return(marshalSize); }