Made ECS a separate module and implemented basic input handling.

This commit is contained in:
Lorenzo Torres 2025-03-28 19:53:56 +01:00
parent 64c9d32905
commit 536c927613
6 changed files with 172 additions and 7 deletions

View file

@ -3,6 +3,7 @@ const Allocator = std.mem.Allocator;
const components = @import("components.zig");
const sparse = @import("sparse.zig");
const Renderer = @import("renderer");
const Input = @import("sideros").Input;
pub const System = *const fn (*Pool) void;
pub const SystemGroup = []const System;
@ -10,6 +11,7 @@ pub const SystemGroup = []const System;
pub const Resources = struct {
window: Renderer.Window,
renderer: Renderer,
input: Input,
};
pub const Human = struct {