summaryrefslogtreecommitdiff
path: root/src/ecs
diff options
context:
space:
mode:
authorLorenzo Torres <torres@sideros.org>2025-03-28 19:53:56 +0100
committerLorenzo Torres <torres@sideros.org>2025-03-28 19:53:56 +0100
commit536c927613948f884ca441b9045afe89c45e0440 (patch)
tree46ed8fcb6be3a7c5039c294ceb71a396b8edcd49 /src/ecs
parent64c9d32905c410dab5b015ed013c93f3793daf55 (diff)
Made ECS a separate module and implemented basic input handling.
Diffstat (limited to 'src/ecs')
-rw-r--r--src/ecs/entities.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ecs/entities.zig b/src/ecs/entities.zig
index 0f1c58d..b50055e 100644
--- a/src/ecs/entities.zig
+++ b/src/ecs/entities.zig
@@ -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 {