Adding a onStart onStop

This commit is contained in:
Zoe Roux
2021-06-09 16:00:06 +02:00
parent c544a83ee8
commit c94237dedc
13 changed files with 79 additions and 38 deletions
+3 -3
View File
@@ -20,12 +20,12 @@ using namespace BBM;
TEST_CASE("Move test", "[Component][System]")
{
Wal wal;
wal.scene = std::make_shared<Scene>();
wal.scene->addEntity("player")
wal.changeScene(std::make_shared<Scene>());
wal.getScene()->addEntity("player")
.addComponent<ControllableComponent>()
.addComponent<MovableComponent>()
.addComponent<PositionComponent>();
Entity &entity = wal.scene->getEntities().front();
Entity &entity = wal.getScene()->getEntities().front();
REQUIRE(entity.getComponent<PositionComponent>().position == Vector3f());