コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= rankNum_.GetHashCode();
            hash ^= requiredExperience_.GetHashCode();
            hash ^= cpMultiplier_.GetHashCode();
            if (MaxEggPlayerLevel != 0)
            {
                hash ^= MaxEggPlayerLevel.GetHashCode();
            }
            if (MaxEncounterPlayerLevel != 0)
            {
                hash ^= MaxEncounterPlayerLevel.GetHashCode();
            }
            if (MaxRaidEncounterPlayerLevel != 0)
            {
                hash ^= MaxRaidEncounterPlayerLevel.GetHashCode();
            }
            if (MaxQuestEncounterPlayerLevel != 0)
            {
                hash ^= MaxQuestEncounterPlayerLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= rankNum_.GetHashCode();
            hash ^= requiredExperience_.GetHashCode();
            hash ^= cpMultiplier_.GetHashCode();
            if (MaxEggPlayerLevel != 0)
            {
                hash ^= MaxEggPlayerLevel.GetHashCode();
            }
            if (MaxEncounterPlayerLevel != 0)
            {
                hash ^= MaxEncounterPlayerLevel.GetHashCode();
            }
            return(hash);
        }