public static EntityId import(World world, string id, ModuleInitActionDelegate module, int flags) { var moduleNamePtr = Caches.AddUnmanagedString(id); return(_ecs.import(world, module, moduleNamePtr, flags, (IntPtr)0, (UIntPtr)0)); //_ecs_import(world, module##Import, #module, flags, handles_out, sizeof(module)) }
public static TypeId ECS_IMPORT(World world, string id, ModuleInitActionDelegate module, int flags) { var moduleEntityId = ecs.import(world, id, module, flags); return(ecs.type_from_entity(world, moduleEntityId)); }
public static extern EntityId import(World world, ModuleInitActionDelegate module, CharPtr moduleName, int flags, IntPtr handlesOut, UIntPtr handlesSize);