예제 #1
0
 /// <summary>
 /// Hash the decoupler.
 /// </summary>
 public override int GetHashCode ()
 {
     int hash = part.GetHashCode ();
     if (decoupler != null)
         hash ^= decoupler.GetHashCode ();
     if (anchoredDecoupler != null)
         hash ^= anchoredDecoupler.GetHashCode ();
     return hash;
 }
예제 #2
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode() ^ port.GetHashCode();

            if (shield != null)
            {
                hash ^= shield.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
        /// <summary>
        /// Hash the resource converter.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = part.GetHashCode();

            foreach (var converter in converters)
            {
                hash ^= converter.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode();

            if (decoupler != null)
            {
                hash ^= decoupler.GetHashCode();
            }
            if (anchoredDecoupler != null)
            {
                hash ^= anchoredDecoupler.GetHashCode();
            }
            return(hash);
        }
예제 #5
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode();

            if (activeRadiator != null)
            {
                hash ^= activeRadiator.GetHashCode();
            }
            if (deployableRadiator != null)
            {
                hash ^= deployableRadiator.GetHashCode();
            }
            return(hash);
        }
예제 #6
0
파일: Fairing.cs 프로젝트: piseason/krpc
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int h = Part.GetHashCode();

            if (fairing != null)
            {
                h ^= fairing.GetHashCode();
            }
            if (proceduralFairing != null)
            {
                h ^= proceduralFairing.GetHashCode();
            }
            return(h);
        }
예제 #7
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            var hash = Part.GetHashCode();

            if (deployment != null)
            {
                hash ^= deployment.GetHashCode();
            }
            if (damage != null)
            {
                hash ^= damage.GetHashCode();
            }
            return(hash);
        }
예제 #8
0
        /// <summary>
        /// Hash the landing gear.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = part.GetHashCode();

            if (gear != null)
            {
                hash ^= gear.GetHashCode();
            }
            if (advGear != null)
            {
                hash ^= advGear.GetHashCode();
            }
            if (fixedGear != null)
            {
                hash ^= fixedGear.GetHashCode();
            }
            return(hash);
        }
예제 #9
0
        /// <summary>
        /// Hash the engine.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = part.GetHashCode();

            if (engine != null)
            {
                hash ^= engine.GetHashCode();
            }
            if (engineFx != null)
            {
                hash ^= engineFx.GetHashCode();
            }
            if (gimbal != null)
            {
                hash ^= gimbal.GetHashCode();
            }
            return(hash);
        }
예제 #10
0
        /// <summary>
        /// Hash the docking ports.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = part.GetHashCode() ^ port.GetHashCode();

            if (shield != null)
            {
                hash ^= shield.GetHashCode();
            }
            if (portNameModule != null)
            {
                hash ^= portNameModule.GetHashCode();
            }
            if (portNameField != null)
            {
                hash ^= portNameField.GetHashCode();
            }
            return(hash);
        }
예제 #11
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode();

            hash ^= engines.GetHashCode();
            foreach (var engine in engines)
            {
                hash ^= engine.GetHashCode();
            }
            if (multiModeEngine != null)
            {
                hash ^= multiModeEngine.GetHashCode();
            }
            if (gimbal != null)
            {
                hash ^= gimbal.GetHashCode();
            }
            return(hash);
        }
예제 #12
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ reactionWheel.GetHashCode());
 }
예제 #13
0
 /// <summary>
 /// Hash the light.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ light.GetHashCode());
 }
예제 #14
0
        /// <summary>
        /// Hash code for the object.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = Part.GetHashCode() ^ servo.GetHashCode();

            return(hash);
        }
예제 #15
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ parachute.GetHashCode());
 }
예제 #16
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ harvester.GetHashCode());
 }
예제 #17
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ launchClamp.GetHashCode());
 }
예제 #18
0
 /// <summary>
 /// Hash the intake.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ intake.GetHashCode());
 }
예제 #19
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ experiment.GetHashCode());
 }
예제 #20
0
파일: Thruster.cs 프로젝트: thinkyfish/krpc
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ transformIndex.GetHashCode());
 }
예제 #21
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ controlSurface.GetHashCode());
 }
예제 #22
0
파일: Radiator.cs 프로젝트: pipi1226/krpc
 /// <summary>
 /// Hash the radiator.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ radiator.GetHashCode());
 }
예제 #23
0
 /// <summary>
 /// Hash the resource harvester.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ harvester.GetHashCode() ^ animator.GetHashCode());
 }
예제 #24
0
파일: RCS.cs 프로젝트: mkalte666/krpc
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode ()
 {
     return Part.GetHashCode () ^ rcs.GetHashCode ();
 }
예제 #25
0
 /// <summary>
 /// Hash the solar panel.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ panel.GetHashCode());
 }
예제 #26
0
 /// <summary>
 /// Hash the module.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ module.GetHashCode());
 }
예제 #27
0
 /// <summary>
 /// Hash the sensor.
 /// </summary>
 public override int GetHashCode()
 {
     return(part.GetHashCode() ^ sensor.GetHashCode());
 }
예제 #28
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ decoupler.Instance.GetHashCode());
 }
예제 #29
0
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode());
 }
예제 #30
0
파일: Antenna.cs 프로젝트: key50/My_kRPC
 /// <summary>
 /// Hash code for the object.
 /// </summary>
 public override int GetHashCode()
 {
     return(Part.GetHashCode() ^ transmitter.GetHashCode());
 }