Esempio n. 1
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _munitionID.GetHashCode();
            result = GenerateHash(result) ^ _eventID.GetHashCode();
            result = GenerateHash(result) ^ _velocity.GetHashCode();
            result = GenerateHash(result) ^ _locationInWorldCoordinates.GetHashCode();
            result = GenerateHash(result) ^ _burstDescriptor.GetHashCode();
            result = GenerateHash(result) ^ _locationInEntityCoordinates.GetHashCode();
            result = GenerateHash(result) ^ _detonationResult.GetHashCode();
            result = GenerateHash(result) ^ _numberOfArticulationParameters.GetHashCode();
            result = GenerateHash(result) ^ _pad.GetHashCode();

            if (_articulationParameters.Count > 0)
            {
                for (int idx = 0; idx < _articulationParameters.Count; idx++)
                {
                    result = GenerateHash(result) ^ _articulationParameters[idx].GetHashCode();
                }
            }


            return(result);
        }
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _emittingEntityId.GetHashCode();
            result = GenerateHash(result) ^ _eventID.GetHashCode();
            result = GenerateHash(result) ^ _location.GetHashCode();
            result = GenerateHash(result) ^ _systemID.GetHashCode();
            result = GenerateHash(result) ^ _pad2.GetHashCode();
            result = GenerateHash(result) ^ _fundamentalParameters.GetHashCode();

            return(result);
        }
Esempio n. 3
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _munitionID.GetHashCode();
            result = GenerateHash(result) ^ _eventID.GetHashCode();
            result = GenerateHash(result) ^ _fireMissionIndex.GetHashCode();
            result = GenerateHash(result) ^ _locationInWorldCoordinates.GetHashCode();
            result = GenerateHash(result) ^ _burstDescriptor.GetHashCode();
            result = GenerateHash(result) ^ _velocity.GetHashCode();
            result = GenerateHash(result) ^ _range.GetHashCode();

            return(result);
        }
Esempio n. 4
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _issuingEntityID.GetHashCode();
            result = GenerateHash(result) ^ _collidingEntityID.GetHashCode();
            result = GenerateHash(result) ^ _eventID.GetHashCode();
            result = GenerateHash(result) ^ _collisionType.GetHashCode();
            result = GenerateHash(result) ^ _pad.GetHashCode();
            result = GenerateHash(result) ^ _velocity.GetHashCode();
            result = GenerateHash(result) ^ _mass.GetHashCode();
            result = GenerateHash(result) ^ _location.GetHashCode();

            return(result);
        }
Esempio n. 5
0
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _emittingEntityID.GetHashCode();
            result = GenerateHash(result) ^ _eventID.GetHashCode();
            result = GenerateHash(result) ^ _stateChangeIndicator.GetHashCode();
            result = GenerateHash(result) ^ _pad.GetHashCode();
            result = GenerateHash(result) ^ _passiveParameterIndex.GetHashCode();
            result = GenerateHash(result) ^ _propulsionPlantConfiguration.GetHashCode();
            result = GenerateHash(result) ^ _numberOfShafts.GetHashCode();
            result = GenerateHash(result) ^ _numberOfAPAs.GetHashCode();
            result = GenerateHash(result) ^ _numberOfUAEmitterSystems.GetHashCode();

            if (_shaftRPMs.Count > 0)
            {
                for (int idx = 0; idx < _shaftRPMs.Count; idx++)
                {
                    result = GenerateHash(result) ^ _shaftRPMs[idx].GetHashCode();
                }
            }


            if (_apaData.Count > 0)
            {
                for (int idx = 0; idx < _apaData.Count; idx++)
                {
                    result = GenerateHash(result) ^ _apaData[idx].GetHashCode();
                }
            }


            if (_emitterSystems.Count > 0)
            {
                for (int idx = 0; idx < _emitterSystems.Count; idx++)
                {
                    result = GenerateHash(result) ^ _emitterSystems[idx].GetHashCode();
                }
            }


            return(result);
        }
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _emittingEntityID.GetHashCode();
            result = GenerateHash(result) ^ _eventID.GetHashCode();
            result = GenerateHash(result) ^ _stateUpdateIndicator.GetHashCode();
            result = GenerateHash(result) ^ _numberOfSystems.GetHashCode();
            result = GenerateHash(result) ^ _paddingForEmissionsPdu.GetHashCode();

            if (_systems.Count > 0)
            {
                for (int idx = 0; idx < _systems.Count; idx++)
                {
                    result = GenerateHash(result) ^ _systems[idx].GetHashCode();
                }
            }


            return(result);
        }
        /**
         * Return Hash
         */
        public override int GetHashCode()
        {
            int result = 0;

            result = GenerateHash(result) ^ base.GetHashCode();

            result = GenerateHash(result) ^ _issuingEntityID.GetHashCode();
            result = GenerateHash(result) ^ _collidingEntityID.GetHashCode();
            result = GenerateHash(result) ^ _collisionEventID.GetHashCode();
            result = GenerateHash(result) ^ _pad.GetHashCode();
            result = GenerateHash(result) ^ _contactVelocity.GetHashCode();
            result = GenerateHash(result) ^ _mass.GetHashCode();
            result = GenerateHash(result) ^ _location.GetHashCode();
            result = GenerateHash(result) ^ _collisionResultXX.GetHashCode();
            result = GenerateHash(result) ^ _collisionResultXY.GetHashCode();
            result = GenerateHash(result) ^ _collisionResultXZ.GetHashCode();
            result = GenerateHash(result) ^ _collisionResultYY.GetHashCode();
            result = GenerateHash(result) ^ _collisionResultYZ.GetHashCode();
            result = GenerateHash(result) ^ _collisionResultZZ.GetHashCode();
            result = GenerateHash(result) ^ _unitSurfaceNormal.GetHashCode();
            result = GenerateHash(result) ^ _coefficientOfRestitution.GetHashCode();

            return(result);
        }