13 sol::usertype<ecs::wrapper::Entity> entity_type =
22 if (entity.isValid()) {
32 LOG_INFO(
"Entity bindings initialized with error handling");
High-level ECS manager providing clean server-side API.
void destroyEntity(const Entity &entity)
Destroy an entity and remove it from the world.
High-level entity wrapper providing fluent interface.
Address getAddress() const
Get the entity's address.
bool isValid() const
Check if this entity is valid.
Helper to simplify component registration.
void applyRemoveFunction(sol::state &lua, ecs::wrapper::ECSWorld *world)
Create the global removeComponent function for all components.
void applyEntityMethods(sol::usertype< ecs::wrapper::Entity > &entityType)
Apply get/has methods on Entity for all components.
void bindEntity(sol::state &lua, ecs::wrapper::ECSWorld *world, ComponentBindingHelper &helper)
Bind Entity wrapper class and operations to Lua.