Made ECS a separate module and implemented basic input handling.
This commit is contained in:
parent
64c9d32905
commit
536c927613
6 changed files with 172 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue