You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
692 B
25 lines
692 B
using System.Runtime.InteropServices; |
|
using gaemstone.ECS; |
|
using gaemstone.ECS.Utility; |
|
using static flecs_hub.flecs; |
|
|
|
namespace gaemstone.Flecs; |
|
|
|
[BuiltIn, Module, Path("/flecs/coredoc")] |
|
[DependsOn<gaemstone.Flecs.Meta>] |
|
[DependsOn<gaemstone.Flecs.Doc>] |
|
public unsafe partial class CoreDoc |
|
: IModuleImport |
|
{ |
|
static Entity<T> IModuleImport.Import<T>(World<T> world) |
|
{ |
|
using var alloc = TempAllocator.Use(); |
|
return Entity<T>.GetOrThrow(world, new(ecs_import_c(world, |
|
new() { Data = new() { Pointer = &CoreDocImport } }, |
|
alloc.AllocateCString("FlecsCoreDoc")))); |
|
} |
|
|
|
[UnmanagedCallersOnly] |
|
private static void CoreDocImport(ecs_world_t* world) |
|
=> FlecsCoreDocImport(world); |
|
}
|
|
|