Compare commits

...

2 Commits

  1. 1
      build.zig
  2. 4
      src/world.zig

@ -16,6 +16,7 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
});
setupFlecs(lib);
lib.installHeader("libs/flecs/flecs.h", "flecs.h");
b.installArtifact(lib);
const main_tests = b.addTest(.{

@ -47,6 +47,10 @@ pub fn World(comptime ctx: anytype) type {
return c.ecs_progress(self.raw, delta_time);
}
pub fn quit(self: *Self) void {
c.ecs_quit(self.raw);
}
/// Returns an `Entity` for the specified `ecs_entity_t` value, or an
/// error if the entity is invalid or not alive in this `World`.
pub fn lookupAlive(self: *Self, id: c.ecs_entity_t) !Entity(ctx) {

Loading…
Cancel
Save