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

            if (DataVersion.Length != 0)
            {
                hash ^= DataVersion.GetHashCode();
            }
            if (DataBuild != 0)
            {
                hash ^= DataBuild.GetHashCode();
            }
            hash ^= abilities_.GetHashCode();
            hash ^= buffs_.GetHashCode();
            hash ^= unitTypes_.GetHashCode();
            hash ^= upgrades_.GetHashCode();
            hash ^= unitProducers_.GetHashCode();
            hash ^= unitRequiredBuildings_.GetHashCode();
            hash ^= researchProducer_.GetHashCode();
            hash ^= researchRequiredBuildings_.GetHashCode();
            hash ^= researchRequiredResearch_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DataVersion.Length != 0)
            {
                hash ^= DataVersion.GetHashCode();
            }
            if (androidVersion_ != null)
            {
                hash ^= AndroidVersion.GetHashCode();
            }
            if (iOSVersion_ != null)
            {
                hash ^= IOSVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }