add enabled() function to entity class
@@ -2051,6 +2051,10 @@ public:
ecs_enable(m_world, m_id, false);
}
+ bool enabled() {
+ return !ecs_has_entity(m_world, m_id, flecs::Disabled);
+ }
+
/** Return the world.
*
* @return The world the entity is stored in.
