diff --git a/include/flecs/addons/cpp/impl/world.hpp b/include/flecs/addons/cpp/impl/world.hpp index ce2e383cc0..4e75922b8e 100644 --- a/include/flecs/addons/cpp/impl/world.hpp +++ b/include/flecs/addons/cpp/impl/world.hpp @@ -280,4 +280,8 @@ inline flecs::scoped_world world::scope() const { return scoped_world(m_world, parent); } +inline flecs::scoped_world world::scope(const char* name) const { + return scope(entity(name)); +} + } // namespace flecs diff --git a/include/flecs/addons/cpp/world.hpp b/include/flecs/addons/cpp/world.hpp index 4a277c3987..f02ddfc426 100644 --- a/include/flecs/addons/cpp/world.hpp +++ b/include/flecs/addons/cpp/world.hpp @@ -868,6 +868,8 @@ struct world { template flecs::scoped_world scope() const; + flecs::scoped_world scope(const char* name) const; + /** Delete all entities with specified id. */ void delete_with(id_t the_id) const { ecs_delete_with(m_world, the_id);