const std = @import("std"); pub const core = @import("core"); pub const systemProc = @import("systemProc.zig"); pub const SubprocessTask = systemProc.SubprocessTask; pub const SystemRunner = systemProc.SystemRunner; pub const runCommand = SubprocessTask.runCommand; pub const start_CompileShaders = systemProc.start_CompileShaders; // TODO get rid of core.ModuleDescription // it's really not needed anymore with the // new backlog API pub const Module: core.ModuleDescription = .{ .name = "sys", .enabledByDefault = false, }; // Module: sys // // this module is not enabled by default // not intended for shipping builds // but provides utilities for file manipulation among other things. pub fn getAllocator() std.mem.Allocator { return core.getEngine().allocator; } pub fn start_module(spec: *core.SpecVariantMap, args: anytype, allocator: std.mem.Allocator) !void { _ = args; _ = spec; _ = allocator; _ = try core.createObject(SystemRunner, .{ .can_tick = true }); } pub fn setupFromModule() void {} pub fn shutdown_module(allocator: std.mem.Allocator) void { _ = allocator; }