예제 #1
0
        /// <summary>
        /// Returns the Pokémon's data file.
        /// </summary>
        /// <param name="Number">The number of the Pokémon.</param>
        /// <param name="AdditionalData">The additional data of the Pokémon.</param>
        public static string GetPokemonDataFile(int Number, string AdditionalData)
        {
            // TODO
            var FileName = GameModeManager.GetPokemonDataFile(Number.ToString(NumberFormatInfo.InvariantInfo) + ".dat").Path;

            string Addition = "";

            foreach (var listP in PokemonList)
            {
                if (listP.IsNumber(Number) == true)
                {
                    Addition = listP.GetDataFileAddition(AdditionalData);
                }
            }

            if (!string.IsNullOrEmpty(Addition))
            {
                FileName = FileName.Remove(FileName.Length - 4, 4) + Addition + ".dat";
            }

            if (System.IO.File.Exists(FileName) == false)
            {
                Number = 10;
                // TODO
                FileName = GameModeManager.GetPokemonDataFile(Number + ".dat").Path;
            }

            return(FileName);
        }