Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (ActivePokemonId != 0)
            {
                hash ^= ActivePokemonId.GetHashCode();
            }
            if (LureExpiresTimestampMs != 0L)
            {
                hash ^= LureExpiresTimestampMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (ActionStartMs != 0L)
            {
                hash ^= ActionStartMs.GetHashCode();
            }
            if (DurationMs != 0)
            {
                hash ^= DurationMs.GetHashCode();
            }
            if (EnergyDelta != 0)
            {
                hash ^= EnergyDelta.GetHashCode();
            }
            if (AttackerIndex != 0)
            {
                hash ^= AttackerIndex.GetHashCode();
            }
            if (TargetIndex != 0)
            {
                hash ^= TargetIndex.GetHashCode();
            }
            if (ActivePokemonId != 0UL)
            {
                hash ^= ActivePokemonId.GetHashCode();
            }
            if (playerJoined_ != null)
            {
                hash ^= PlayerJoined.GetHashCode();
            }
            if (battleResults_ != null)
            {
                hash ^= BattleResults.GetHashCode();
            }
            if (DamageWindowsStartTimestampMs != 0L)
            {
                hash ^= DamageWindowsStartTimestampMs.GetHashCode();
            }
            if (DamageWindowsEndTimestampMs != 0L)
            {
                hash ^= DamageWindowsEndTimestampMs.GetHashCode();
            }
            if (playerLeft_ != null)
            {
                hash ^= PlayerLeft.GetHashCode();
            }
            if (TargetPokemonId != 0UL)
            {
                hash ^= TargetPokemonId.GetHashCode();
            }
            return(hash);
        }