module: add event arguments & dependency injection support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e4e834e054
commit
e25281cc64
2 changed files with 283 additions and 37 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue