Add tests and SDK

This commit is contained in:
Jérôme Leclercq
2021-05-17 23:08:37 +02:00
parent 26de5872eb
commit e716b44aa3
52 changed files with 539 additions and 276 deletions

View File

@@ -55,7 +55,7 @@ SCENARIO("World", "[NDK][WORLD]")
{
GIVEN("A brave new world and the update system")
{
Ndk::World world(false);
Ndk::World world;
Ndk::BaseSystem& system = world.AddSystem<UpdateSystem>();
WHEN("We had a new entity with an updatable component and a system")
@@ -103,7 +103,7 @@ SCENARIO("World", "[NDK][WORLD]")
GIVEN("A newly created entity")
{
Ndk::World world(false);
Ndk::World world;
Ndk::EntityHandle entity = world.CreateEntity();
REQUIRE(entity.IsValid());
@@ -129,7 +129,7 @@ SCENARIO("World", "[NDK][WORLD]")
GIVEN("An empty world")
{
Ndk::World world(false);
Ndk::World world;
WHEN("We create two entities")
{