Esempio n. 1
0
File: Dino.cs Progetto: Dia/Larkator
        public override int GetHashCode()
        {
            var hashCode = 1606339474;

            hashCode = hashCode * -1521134295 + EqualityComparer <ulong?> .Default.GetHashCode(Id);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Type);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + BaseLevel.GetHashCode();
            hashCode = hashCode * -1521134295 + Female.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Position> .Default.GetHashCode(Location);

            hashCode = hashCode * -1521134295 + EqualityComparer <StatPoints> .Default.GetHashCode(WildLevels);

            return(hashCode);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BattleId != 0L)
            {
                hash ^= BattleId.GetHashCode();
            }
            if (BattleParameterId != 0)
            {
                hash ^= BattleParameterId.GetHashCode();
            }
            if (BattleRewardId != 0)
            {
                hash ^= BattleRewardId.GetHashCode();
            }
            if (BaseLevel != 0)
            {
                hash ^= BaseLevel.GetHashCode();
            }
            if (U5 != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (BattleBgmId.Length != 0)
            {
                hash ^= BattleBgmId.GetHashCode();
            }
            if (ResultBgmId.Length != 0)
            {
                hash ^= ResultBgmId.GetHashCode();
            }
            if (U8 != 0)
            {
                hash ^= U8.GetHashCode();
            }
            if (U9 != 0)
            {
                hash ^= U9.GetHashCode();
            }
            if (U10 != 0)
            {
                hash ^= U10.GetHashCode();
            }
            if (U11 != 0)
            {
                hash ^= U11.GetHashCode();
            }
            if (DeckPresetGroupId != 0)
            {
                hash ^= DeckPresetGroupId.GetHashCode();
            }
            if (U13 != 0)
            {
                hash ^= U13.GetHashCode();
            }
            if (U14 != 0)
            {
                hash ^= U14.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }