module: add event arguments & dependency injection support

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-15 15:26:28 -07:00 committed by Stephen Gutekanst
parent e4e834e054
commit e25281cc64
2 changed files with 283 additions and 37 deletions

View file

@ -8,7 +8,8 @@ const EntityID = @import("entities.zig").EntityID;
const comp = @import("comptime.zig");
pub fn World(comptime mods: anytype) type {
const modules = mach.Modules(mods);
const Injectable = struct {}; // TODO
const modules = mach.Modules(mods, Injectable);
return struct {
allocator: mem.Allocator,