From 1b2bd5660ee0d74f0f83634b873beb84e67025df Mon Sep 17 00:00:00 2001 From: copygirl Date: Tue, 14 Nov 2023 21:15:45 +0100 Subject: [PATCH] Add world.quit function --- src/world.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/world.zig b/src/world.zig index 7ae96e1..85f5b4d 100644 --- a/src/world.zig +++ b/src/world.zig @@ -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) {