コード例 #1
0
        private void Client_ReceiveSpawnId(RemoteEntityWorld sender, ReceiveDataReader reader)
        {
            int spawnId = reader.ReadVariableInt32();

            if (!reader.Complete())
            {
                return;
            }
            spawnid = (SpawnId)spawnId;// EntityTypes.Instance.GetByName(s);
        }
コード例 #2
0
 //Incin -- SpawnId Network Messages
 public bool IsSpawnId(SpawnPoint spawnpoint, SpawnId id)
 {
     if (spawnpoint.SpawnID == id)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #3
0
        public static SpawnPoint AKGetSpawnPointById(SpawnId id)
        {
            foreach (SpawnPoint sp in instances)
            {
                if (sp.SpawnID != id)
                {
                    continue;
                }
                else if (sp.SpawnID == id)
                {
                    return(sp);
                }
                else
                {
                    return(null);
                }
            }

            return(null);
        }
コード例 #4
0
 public dynamic GetWebhookValues(string type)
 {
     return(new
     {
         type = "pokemon",
         message = new
         {
             spawnpoint_id = SpawnId?.ToString("X") ?? "None",
             pokestop_id = PokestopId ?? "None",
             encounter_id = Id,
             pokemon_id = PokemonId,
             latitude = Latitude,
             longitude = Longitude,
             disappear_time = ExpireTimestamp,
             disappear_time_verified = IsExpireTimestampVerified,
             first_seen = FirstSeenTimestamp,
             last_modified_time = Updated,
             gender = Gender,
             cp = CP,
             form = Form,
             costume = Costume,
             individual_attack = AttackIV,
             individual_defense = DefenseIV,
             individual_stamina = StaminaIV,
             pokemon_level = Level,
             move_1 = Move1,
             move_2 = Move2,
             weight = Weight,
             height = Size,
             weather = Weather,
             shiny = IsShiny,
             username = Username,
             display_pokemon_id = DisplayPokemonId,
             pvp_rankings_great_league = PvpRankingsGreatLeague,
             pvp_rankings_ultra_league = PvpRankingsUltraLeague,
             is_event = IsEvent,
         },
     });
 }
コード例 #5
0
 private void Client_ReceiveSpawnId(RemoteEntityWorld sender, ReceiveDataReader reader)
 {
     int spawnId = reader.ReadVariableInt32();
     if (!reader.Complete())
         return;
     spawnid = (SpawnId)spawnId;// EntityTypes.Instance.GetByName(s);
 }
コード例 #6
0
        public static SpawnPoint AKGetSpawnPointById(SpawnId id)
        {
            foreach (SpawnPoint sp in instances)
            {
                if (sp.SpawnID != id)
                    continue;
                else if (sp.SpawnID == id)
                    return sp;
                else
                    return null;
            }

            return null;
        }
コード例 #7
0
 //Incin -- SpawnId Network Messages
 public bool IsSpawnId(SpawnPoint spawnpoint, SpawnId id)
 {
     if (spawnpoint.SpawnID == id)
         return true;
     else
         return false;
 }