public static corePokemonData pokemonStats(PokedexData p, int id) { PokemonJsonData pokemon = p.pokemon[id]; corePokemonData data = new corePokemonData(pokemon); return data; }
private static void createDamageMultipliers(PokedexData Pokedex) { Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i < Pokedex.pokemon.Length - 1; i++) { Pokedex.pokemon[i].damageMultiplier = FBG_DmgMult.createMultiplier(Pokedex.pokemon[i].types); } sw.Stop(); //print("time to create dmg multipliers in ms: " + sw.ElapsedMilliseconds); }
// Use this for initialization void Awake() { Stopwatch sw = new Stopwatch(); sw.Start(); redTeamStatus.assignEnemyTeam(ref blueTeamStatus); blueTeamStatus.assignEnemyTeam(ref redTeamStatus); //get the enviornment ready FBG_BattleEnviornment.init(); //this initalizes our pokedex pokeDex = FBG_JsonReader.createPokeDex(); attackDex = FBG_JsonAttack.createAttackDex(); //this creates our teams createTeams(); //debugRedTeam(); battleGUI = this.GetComponent<FBG_BattleGUI>(); checkButtonNames(); sw.Stop(); print(string.Format("Time to load {0}ms", sw.ElapsedMilliseconds)); }
private static void debugJson(PokedexData Pokedex) { //int index = 0; //print(json.pokemon[0].name); for (int i = 0; i < Pokedex.pokemon.Length; i++) { UnityEngine.Debug.Log(string.Format("{3} {0} {1} {2}", Pokedex.pokemon[i].name, Pokedex.pokemon[i].num, Pokedex.pokemon[i].baseStats.atk, i)); } //print(index); }