fix readme example

This commit is contained in:
2018-12-28 11:52:23 +07:00
parent 3393a4479e
commit 32ed913c5d
2 changed files with 2 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ private:
ecs_hpp::registry world;
world.add_system<movement_system>();
world.add_system<gravity_system>(9.8f);
auto entity_one = world.create_entity();
world.assign_component<position_component>(entity_one, 4.f, 2.f);

View File

@@ -747,6 +747,7 @@ TEST_CASE("example") {
ecs_hpp::registry world;
world.add_system<movement_system>();
world.add_system<gravity_system>(9.8f);
auto entity_one = world.create_entity();
world.assign_component<position_component>(entity_one, 4.f, 2.f);