示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (LastModifiedTimestampMs != 0L)
            {
                hash ^= LastModifiedTimestampMs.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= Latitude.GetHashCode();
            }
            if (Longitude != 0D)
            {
                hash ^= Longitude.GetHashCode();
            }
            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (TimeTillHiddenMs != 0)
            {
                hash ^= TimeTillHiddenMs.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (ExpirationTimestampMs != 0L)
            {
                hash ^= ExpirationTimestampMs.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= Latitude.GetHashCode();
            }
            if (Longitude != 0D)
            {
                hash ^= Longitude.GetHashCode();
            }
            return(hash);
        }
示例#3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (Pokeball != 0)
            {
                hash ^= Pokeball.GetHashCode();
            }
            if (NormalizedReticleSize != 0D)
            {
                hash ^= NormalizedReticleSize.GetHashCode();
            }
            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (HitPokemon != false)
            {
                hash ^= HitPokemon.GetHashCode();
            }
            if (SpinModifier != 0D)
            {
                hash ^= SpinModifier.GetHashCode();
            }
            if (NormalizedHitPosition != 0D)
            {
                hash ^= NormalizedHitPosition.GetHashCode();
            }
            return(hash);
        }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (PlayerLatitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLatitude);
            }
            if (PlayerLongitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLongitude);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (Pokeball != 0)
            {
                hash ^= Pokeball.GetHashCode();
            }
            if (NormalizedReticleSize != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NormalizedReticleSize);
            }
            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (HitPokemon != false)
            {
                hash ^= HitPokemon.GetHashCode();
            }
            if (SpinModifier != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SpinModifier);
            }
            if (NormalizedHitPosition != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NormalizedHitPosition);
            }
            if (arPlusValues_ != null)
            {
                hash ^= ArPlusValues.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public SnipePokemonViewModel(EncounteredEvent e)
        {
            var session = TinyIoCContainer.Current.Resolve <ISession>();

            UniqueId = e.EncounterId;
            ulong.TryParse(e.EncounterId, out ulong encounterid);
            Ref          = e;
            AllowSnipe   = true;
            PokemonId    = e.PokemonId;
            IV           = e.IV;
            Latitude     = e.Latitude;
            Longitude    = e.Longitude;
            Move1        = e.Move1;
            Move2        = e.Move2;
            Expired      = DateTime.Now.AddSeconds(session.LogicSettings.UIConfig.SnipeItemListDisplayTime);
            EncounterId  = encounterid;
            Level        = e.Level;
            SpawnPointId = e.SpawnPointId;
            Verified     = (EncounterId > 0 && !SpawnPointId.Contains("-") ? "Verified":"");
        }
示例#7
0
        public SnipePokemonViewModel(EncounteredEvent e)
        {
#pragma warning disable IDE0018 // Inline variable declaration - Build.Bat Error Happens if We Do
            var   session = TinyIoCContainer.Current.Resolve <ISession>();
            ulong encounterid;
            UniqueId = e.EncounterId;
            ulong.TryParse(e.EncounterId, out encounterid);
            Ref          = e;
            AllowSnipe   = true;
            PokemonId    = e.PokemonId;
            IV           = e.IV;
            Latitude     = e.Latitude;
            Longitude    = e.Longitude;
            Move1        = e.Move1;
            Move2        = e.Move2;
            Expired      = DateTime.Now.AddSeconds(session.LogicSettings.UIConfig.SnipeItemListDisplayTime);
            EncounterId  = encounterid;
            Level        = e.Level;
            SpawnPointId = e.SpawnPointId;
            Verified     = (EncounterId > 0 && !SpawnPointId.Contains("-") ? "Verified":"");
#pragma warning restore IDE0018 // Inline variable declaration - Build.Bat Error Happens if We Do
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (PlayerLatitude != 0D)
            {
                hash ^= PlayerLatitude.GetHashCode();
            }
            if (PlayerLongitude != 0D)
            {
                hash ^= PlayerLongitude.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (ExpirationTimestampMs != 0L)
            {
                hash ^= ExpirationTimestampMs.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (pokemonDisplay_ != null)
            {
                hash ^= PokemonDisplay.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId != 0UL)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (LastModifiedTimestampMs != 0L)
            {
                hash ^= LastModifiedTimestampMs.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (SpawnPointId.Length != 0)
            {
                hash ^= SpawnPointId.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (TimeTillHiddenMs != 0)
            {
                hash ^= TimeTillHiddenMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#11
0
 public bool IsVerified()
 {
     return(EncounterId > 0 && SpawnPointId.IndexOf('-') < 0);
 }