mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-26 15:58:12 +00:00
Adding a onStart onStop
This commit is contained in:
+3
-3
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user