diff --git a/src/world.zig b/src/world.zig index 0c3a88a..c583340 100644 --- a/src/world.zig +++ b/src/world.zig @@ -32,6 +32,13 @@ pub fn World(comptime ctx: anytype) type { return result; } + pub fn initMinimal(alloc: Allocator) !*Self { + var result = try alloc.create(Self); + result.raw = c.ecs_mini().?; + result.allocator = alloc; + return result; + } + pub fn deinit(self: *Self) void { _ = c.ecs_fini(self.raw); self.allocator.destroy(self);