Implement basic type library.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-11-04 17:58:26 +01:00
parent b4e08049ce
commit 168e14d394
5 changed files with 75 additions and 4 deletions

View File

@@ -41,10 +41,17 @@ static GrowthRateLibrary* BuildGrowthRateLibrary(){
return l;
}
static TypeLibrary* BuildTypeLibrary(){
auto l = new TypeLibrary();
l->RegisterType("testType1");
l->RegisterType("testType2");
l->RegisterType("testType3");
return l;
}
static BattleLibrary* BuildLibrary(){
auto l = new DataLibrary(LibrarySettings(100, 4), BuildSpeciesLibrary(), BuildAttackLibrary(),
BuildItemLibrary(), BuildGrowthRateLibrary());
BuildItemLibrary(), BuildGrowthRateLibrary(), BuildTypeLibrary());
auto battleLib = new BattleLibrary(l, new BattleStatCalculator());
return battleLib;
}