Exemple #1
0
 public override int GetHashCode()
 {
     return
         ((Flexible != null ? Flexible.GetHashCode() : 0) ^
          (Light != null ? Light.GetHashCode() : 0) ^
          (Sculpt != null ? Sculpt.GetHashCode() : 0) ^
          PrimData.Material.GetHashCode() ^
          //TODO: NameValues?
          PrimData.PathBegin.GetHashCode() ^
          PrimData.PathCurve.GetHashCode() ^
          PrimData.PathEnd.GetHashCode() ^
          PrimData.PathRadiusOffset.GetHashCode() ^
          PrimData.PathRevolutions.GetHashCode() ^
          PrimData.PathScaleX.GetHashCode() ^
          PrimData.PathScaleY.GetHashCode() ^
          PrimData.PathShearX.GetHashCode() ^
          PrimData.PathShearY.GetHashCode() ^
          PrimData.PathSkew.GetHashCode() ^
          PrimData.PathTaperX.GetHashCode() ^
          PrimData.PathTaperY.GetHashCode() ^
          PrimData.PathTwist.GetHashCode() ^
          PrimData.PathTwistBegin.GetHashCode() ^
          PrimData.PCode.GetHashCode() ^
          PrimData.ProfileBegin.GetHashCode() ^
          PrimData.ProfileCurve.GetHashCode() ^
          PrimData.ProfileEnd.GetHashCode() ^
          PrimData.ProfileHollow.GetHashCode() ^
          TextureAnim.GetHashCode() ^
          (Textures != null ? Textures.GetHashCode() : 0) ^
          PrimData.State.GetHashCode());
 }
Exemple #2
0
 public override int GetHashCode()
 {
     return
         (Position.GetHashCode() ^
          Velocity.GetHashCode() ^
          Acceleration.GetHashCode() ^
          Rotation.GetHashCode() ^
          AngularVelocity.GetHashCode() ^
          ClickAction.GetHashCode() ^
          (Flexible != null ? Flexible.GetHashCode() : 0) ^
          (Light != null ? Light.GetHashCode() : 0) ^
          (Sculpt != null ? Sculpt.GetHashCode() : 0) ^
          Flags.GetHashCode() ^
          PrimData.Material.GetHashCode() ^
          MediaURL.GetHashCode() ^
          //TODO: NameValues?
          (Properties != null ? Properties.OwnerID.GetHashCode() : 0) ^
          ParentID.GetHashCode() ^
          PrimData.PathBegin.GetHashCode() ^
          PrimData.PathCurve.GetHashCode() ^
          PrimData.PathEnd.GetHashCode() ^
          PrimData.PathRadiusOffset.GetHashCode() ^
          PrimData.PathRevolutions.GetHashCode() ^
          PrimData.PathScaleX.GetHashCode() ^
          PrimData.PathScaleY.GetHashCode() ^
          PrimData.PathShearX.GetHashCode() ^
          PrimData.PathShearY.GetHashCode() ^
          PrimData.PathSkew.GetHashCode() ^
          PrimData.PathTaperX.GetHashCode() ^
          PrimData.PathTaperY.GetHashCode() ^
          PrimData.PathTwist.GetHashCode() ^
          PrimData.PathTwistBegin.GetHashCode() ^
          PrimData.PCode.GetHashCode() ^
          PrimData.ProfileBegin.GetHashCode() ^
          PrimData.ProfileCurve.GetHashCode() ^
          PrimData.ProfileEnd.GetHashCode() ^
          PrimData.ProfileHollow.GetHashCode() ^
          ParticleSys.GetHashCode() ^
          TextColor.GetHashCode() ^
          TextureAnim.GetHashCode() ^
          (Textures != null ? Textures.GetHashCode() : 0) ^
          SoundRadius.GetHashCode() ^
          Scale.GetHashCode() ^
          Sound.GetHashCode() ^
          PrimData.State.GetHashCode() ^
          Text.GetHashCode() ^
          TreeSpecies.GetHashCode());
 }