Fixed unittests and betterC compilation (after adding fullyQualifiedName instead of simple stringof)

-added new trait to get full name of structure (witho module and package, not tested on more nested packages)
-some small improvements (like adding const to function which need it)
This commit is contained in:
Mergul 2020-07-08 22:04:13 +02:00
parent b0b64b965f
commit a0efa4e67d
5 changed files with 53 additions and 15 deletions

View file

@ -401,7 +401,7 @@ unittest
System* ecs_system = gEM.getSystem(EmptySystem.system_id);
assert(ecs_system !is null);
assert(ecs_system.id == EmptySystem.system_id);
assert(ecs_system.name == "EmptySystem");
assert(ecs_system.name == "tests.basic.EmptySystem");
gEM.begin();
@ -605,7 +605,7 @@ unittest
assert(ecs_system !is null);
assert(ecs_system.id == LongAddSystem.system_id);
assert(ecs_system.priority == -1);
assert(ecs_system.name == "LongAddSystem");
assert(ecs_system.name == "tests.basic.LongAddSystem");
ushort[1] ids = [CLong.component_id];
EntityTemplate* tmpl = gEM.allocateTemplate(ids);