diff --git a/README.md b/README.md index 0603800..df4e4a6 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ class PhysicsSystem final : public System } ~PhysicsSystem() final { - auto manager = getManager(); - if (manager->isRunning()) - UNSUBSCRIBE_FROM_EVENT("Update", PhysicsSystem::update); + auto manager = getManager(); + if (manager->isRunning()) + UNSUBSCRIBE_FROM_EVENT("Update", PhysicsSystem::update); } void update() @@ -49,26 +49,26 @@ class PhysicsSystem final : public System } const string& getComponentName() const final - { - static const string name = "Rigid Body"; - return name; - } + { + static const string name = "Rigid Body"; + return name; + } type_index getComponentType() const final - { - return typeid(RigidBodyComponent); - } + { + return typeid(RigidBodyComponent); + } ID createComponent(ID entity) final - { - return ID(components.create()); - } + { + return ID(components.create()); + } void destroyComponent(ID instance) final - { - components.destroy(ID(instance)); - } + { + components.destroy(ID(instance)); + } View getComponent(ID instance) final { - return View(components.get(ID(instance))); - } + return View(components.get(ID(instance))); + } void disposeComponents() final { components.dispose(); } friend class ecsm::Manager;