pub unsafe extern "C" fn ecs_import(
world: *mut ecs_world_t,
module: ecs_module_action_t,
module_name: *const c_char,
) -> ecs_entity_tExpand description
Import a module. This operation will load a modules and store the public module handles in the handles_out out parameter. The module name will be used to verify if the module was already loaded, in which case it won’t be reimported. The name will be translated from PascalCase to an entity path (pascal.case) before the lookup occurs.
Module contents will be stored as children of the module entity. This prevents modules from accidentally defining conflicting identifiers. This is enforced by setting the scope before and after loading the module to the module entity id.
A more convenient way to import a module is by using the ECS_IMPORT macro.
@param world The world. @param module The module import function. @param module_name The name of the module. @return The module entity.