diff --git a/src/app.zig b/src/app.zig index a09a1c7..8e57c20 100644 --- a/src/app.zig +++ b/src/app.zig @@ -9,12 +9,39 @@ pub const template = @import("template/root.zig"); pub const ecs = @import("world/root.zig"); const Self = @This(); +/// ---------------------------------------------------- +/// Default app stages +/// ---------------------------------------------------- pub const stage = struct { - pub const Init = struct {}; - pub const Deinit = struct {}; - pub const Inputs = struct {}; - pub const Update = struct {}; - pub const Draw = struct {}; + // --- INIT --- + pub const pre_init = struct {}; + pub const init = struct {}; + pub const post_init = struct {}; + + // --- DEINIT --- + pub const pre_deinit = struct {}; + pub const deinit = struct {}; + pub const post_deinit = struct {}; + + // --- INPUTS --- + pub const pre_inputs = struct {}; + pub const inputs = struct {}; + pub const post_inputs = struct {}; + + // --- FIXED UPDATE --- + pub const pre_fixed_update = struct {}; + pub const fixed_update = struct {}; + pub const post_fixed_update = struct {}; + + // --- UPDATE --- + pub const pre_update = struct {}; + pub const update = struct {}; + pub const post_update = struct {}; + + // --- DRAW --- + pub const pre_draw = struct {}; + pub const draw = struct {}; + pub const post_draw = struct {}; }; /// ----------------------------------------------------