Skip to content

Commit

Permalink
Fix README code indentations
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Mar 9, 2024
1 parent 0c1dfbb commit 6c5eb0d
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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<Component> createComponent(ID<Entity> entity) final
{
return ID<Component>(components.create());
}
{
return ID<Component>(components.create());
}
void destroyComponent(ID<Component> instance) final
{
components.destroy(ID<RigidBodyComponent>(instance));
}
{
components.destroy(ID<RigidBodyComponent>(instance));
}
View<Component> getComponent(ID<Component> instance) final
{
return View<Component>(components.get(ID<RigidBodyComponent>(instance)));
}
return View<Component>(components.get(ID<RigidBodyComponent>(instance)));
}
void disposeComponents() final { components.dispose(); }

friend class ecsm::Manager;
Expand Down

0 comments on commit 6c5eb0d

Please sign in to comment.