Add generic LearnedMove in PokemonBuilder.
This commit is contained in:
@@ -2,10 +2,11 @@ using System.Collections.Generic;
|
||||
using PkmnLibSharp.Battling;
|
||||
using PkmnLibSharp.Library;
|
||||
using PkmnLibSharp.Library.Items;
|
||||
using PkmnLibSharp.Library.Moves;
|
||||
|
||||
namespace PkmnLibSharpTests.Battling
|
||||
{
|
||||
public class PokemonBuilder : BasePokemonBuilder<Pokemon>
|
||||
public class PokemonBuilder : BasePokemonBuilder<Pokemon, LearnedMove>
|
||||
{
|
||||
public PokemonBuilder(BattleLibrary library, string species, byte level) : base(library, species, level)
|
||||
{
|
||||
@@ -18,5 +19,10 @@ namespace PkmnLibSharpTests.Battling
|
||||
heldItem, Nickname, HiddenAbility, (byte) AbilityIndex, moves, IVs, EVs, nature);
|
||||
return pkmn;
|
||||
}
|
||||
|
||||
protected override LearnedMove CreateLearnedMove(MoveData move, byte maxUses, MoveLearnMethod learnMethod)
|
||||
{
|
||||
return new LearnedMove(move, maxUses, learnMethod);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user