{module,ecs}: Mach ECS becomes the Mach' module system
This moves the bulk of the ECS code into `src/module`. It also makes types like `mach.ecs.EntityID` accessible at the top-level `mach.EntityID` instead. The motivation of this change is to make the Mach module system a first-class property of Mach. Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
679a05faf4
commit
f578e1f5e2
15 changed files with 23 additions and 52 deletions
|
|
@ -1,6 +1,5 @@
|
|||
const std = @import("std");
|
||||
const mach = @import("mach");
|
||||
const ecs = mach.ecs;
|
||||
const core = mach.core;
|
||||
const math = mach.math;
|
||||
const Renderer = @import("Renderer.zig");
|
||||
|
|
@ -12,7 +11,7 @@ const Vec3 = math.Vec3;
|
|||
|
||||
// Global state for our game module.
|
||||
timer: mach.Timer,
|
||||
player: ecs.EntityID,
|
||||
player: mach.EntityID,
|
||||
direction: Vec2 = vec2(0, 0),
|
||||
spawning: bool = false,
|
||||
spawn_timer: mach.Timer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue