diff --git a/src/engine.zig b/src/engine.zig index c4edea1a..bd4f5f54 100644 --- a/src/engine.zig +++ b/src/engine.zig @@ -7,13 +7,13 @@ const ecs = @import("ecs"); /// The Mach engine ECS module. This enables access to `engine.get(.mach, .core)` `*Core` APIs, as /// to for example `.setOptions(.{.title = "foobar"})`, or to access the GPU device via /// `engine.get(.mach, .device)` -pub const module = ecs.Module(.{ - .globals = struct { - core: *Core, - device: *gpu.Device, - exit: bool, - }, -}); +pub const Module = struct { + core: *Core, + device: *gpu.Device, + exit: bool, + + pub const name = .mach; +}; var gpa = std.heap.GeneralPurposeAllocator(.{}){}; const allocator = gpa.allocator(); diff --git a/src/main.zig b/src/main.zig index 45c8c4f3..2dcbdccb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -15,7 +15,7 @@ pub const ResourceManager = @import("resource/ResourceManager.zig"); // Engine exports pub const App = @import("engine.zig").App; -pub const module = @import("engine.zig").module; +pub const Module = @import("engine.zig").Module; const std = @import("std");