2020-08-08 15:07:05 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using PkmnLibSharp.Battling;
|
|
|
|
using PkmnLibSharp.Library;
|
|
|
|
using PkmnLibSharp.Library.Items;
|
|
|
|
|
|
|
|
namespace PkmnLibSharpTests.Battling
|
|
|
|
{
|
|
|
|
public class PokemonBuilder : BasePokemonBuilder<Pokemon>
|
|
|
|
{
|
|
|
|
public PokemonBuilder(BattleLibrary library, string species, byte level) : base(library, species, level)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override Pokemon Finalize(Species species, Forme forme, Item? heldItem, IReadOnlyCollection<LearnedMove> moves, Nature nature)
|
|
|
|
{
|
2020-08-17 16:51:07 +00:00
|
|
|
var pkmn = new Pokemon(Library, species, forme!, Level, Experience, Uid, Gender, Coloring,
|
2020-08-08 15:07:05 +00:00
|
|
|
heldItem, Nickname, HiddenAbility, (byte) AbilityIndex, moves, IVs, EVs, nature);
|
2020-08-17 16:51:07 +00:00
|
|
|
return pkmn;
|
2020-08-08 15:07:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|