diff --git a/entitysystem/ecs.h b/entitysystem/ecs.h index 1ed2f948..ff521060 100644 --- a/entitysystem/ecs.h +++ b/entitysystem/ecs.h @@ -82,9 +82,9 @@ class ECS final } /// - /// Adds component of type T to entity, forwarding provided arguments to component constructor. If component already exists, it will be replaced. + /// Returns entity's component /// - /// Component type + /// type /// Entity to which component will be added /// Reference to added component template T &Get(entt::entity entity) @@ -93,9 +93,9 @@ class ECS final } /// - /// Adds component of type T to entity, forwarding provided arguments to component constructor. If component already exists, it will be replaced. + /// Returns entity's component /// - /// Component type + /// type /// Entity to which component will be added /// Reference to added component template const T &Get(entt::entity entity) const