Implement basic type library.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user