Exemple #1
0
        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))
        }
Exemple #2
0
        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));
        }
Exemple #3
0
 public static extern EntityId import(World world, ModuleInitActionDelegate module, CharPtr moduleName, int flags, IntPtr handlesOut, UIntPtr handlesSize);