Support for getting type names from TypeLibrary.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-08 12:54:28 +02:00
parent 9cab330dbd
commit 4ffc8ba01f
4 changed files with 21 additions and 25 deletions

View File

@@ -69,9 +69,9 @@ GrowthRateLibrary* TestLibrary::BuildGrowthRateLibrary() {
TypeLibrary* TestLibrary::BuildTypeLibrary() {
auto l = new TypeLibrary();
l->RegisterType("testType1"_cnc.GetHash());
l->RegisterType("testType2"_cnc.GetHash());
l->RegisterType("testType3"_cnc.GetHash());
l->RegisterType("testType1"_cnc);
l->RegisterType("testType2"_cnc);
l->RegisterType("testType3"_cnc);
return l;
}