Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (TextureQuality != 0)
            {
                hash ^= TextureQuality.GetHashCode();
            }
            if (ShaderLod != 0)
            {
                hash ^= ShaderLod.GetHashCode();
            }
            if (DefaultTargetFps != 0)
            {
                hash ^= DefaultTargetFps.GetHashCode();
            }
            if (Antialiasing != 0)
            {
                hash ^= Antialiasing.GetHashCode();
            }
            if (AnisotropicFiltering != 0)
            {
                hash ^= AnisotropicFiltering.GetHashCode();
            }
            if (BillboardsFaceCameraPosition != false)
            {
                hash ^= BillboardsFaceCameraPosition.GetHashCode();
            }
            if (RealtimeShadows != 0)
            {
                hash ^= RealtimeShadows.GetHashCode();
            }
            if (ArAzimuthBlurring != false)
            {
                hash ^= ArAzimuthBlurring.GetHashCode();
            }
            hash ^= GamemodeOverrides.GetHashCode();
            if (ArEncounterParticleCap != 0)
            {
                hash ^= ArEncounterParticleCap.GetHashCode();
            }
            if (LockedEncounterParticleCap != 0)
            {
                hash ^= LockedEncounterParticleCap.GetHashCode();
            }
            if (MenuParticleCap != 0)
            {
                hash ^= MenuParticleCap.GetHashCode();
            }
            if (ArAzimuthColorGrading != false)
            {
                hash ^= ArAzimuthColorGrading.GetHashCode();
            }
            if (ShadowMapSize != 0)
            {
                hash ^= ShadowMapSize.GetHashCode();
            }
            if (EncounterCameraTargetScaling != 0)
            {
                hash ^= EncounterCameraTargetScaling.GetHashCode();
            }
            if (AdvancedArCameraResolution != 0)
            {
                hash ^= AdvancedArCameraResolution.GetHashCode();
            }
            if (VfxLod != 0)
            {
                hash ^= VfxLod.GetHashCode();
            }
            if (ForceSimpleAr != false)
            {
                hash ^= ForceSimpleAr.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
 public bool Equals(SharedQualityLevel other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (Name != other.Name)
     {
         return(false);
     }
     if (TextureQuality != other.TextureQuality)
     {
         return(false);
     }
     if (ShaderLod != other.ShaderLod)
     {
         return(false);
     }
     if (DefaultTargetFps != other.DefaultTargetFps)
     {
         return(false);
     }
     if (Antialiasing != other.Antialiasing)
     {
         return(false);
     }
     if (AnisotropicFiltering != other.AnisotropicFiltering)
     {
         return(false);
     }
     if (BillboardsFaceCameraPosition != other.BillboardsFaceCameraPosition)
     {
         return(false);
     }
     if (RealtimeShadows != other.RealtimeShadows)
     {
         return(false);
     }
     if (ArAzimuthBlurring != other.ArAzimuthBlurring)
     {
         return(false);
     }
     if (!GamemodeOverrides.Equals(other.GamemodeOverrides))
     {
         return(false);
     }
     if (ArEncounterParticleCap != other.ArEncounterParticleCap)
     {
         return(false);
     }
     if (LockedEncounterParticleCap != other.LockedEncounterParticleCap)
     {
         return(false);
     }
     if (MenuParticleCap != other.MenuParticleCap)
     {
         return(false);
     }
     if (ArAzimuthColorGrading != other.ArAzimuthColorGrading)
     {
         return(false);
     }
     if (ShadowMapSize != other.ShadowMapSize)
     {
         return(false);
     }
     if (EncounterCameraTargetScaling != other.EncounterCameraTargetScaling)
     {
         return(false);
     }
     if (AdvancedArCameraResolution != other.AdvancedArCameraResolution)
     {
         return(false);
     }
     if (VfxLod != other.VfxLod)
     {
         return(false);
     }
     if (ForceSimpleAr != other.ForceSimpleAr)
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }