{mach,ecs}: pass World to ECS event handlers

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-03-26 12:34:23 -07:00 committed by Stephen Gutekanst
parent 15e6f81df8
commit f153133c30
3 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ pub fn App(comptime modules: anytype) type {
};
app.engine.set(.mach, .core, &app.core);
app.engine.set(.mach, .device, app.core.device());
app.engine.send(.init);
try app.engine.send(.init);
}
pub fn deinit(app: *@This()) void {
@ -44,7 +44,7 @@ pub fn App(comptime modules: anytype) type {
}
pub fn update(app: *@This()) !bool {
app.engine.send(.tick);
try app.engine.send(.tick);
return false;
}
};