module: write components using a struct pattern
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
17db5498ee
commit
2115f5832a
8 changed files with 45 additions and 62 deletions
|
|
@ -17,7 +17,7 @@ spawning: bool = false,
|
|||
spawn_timer: mach.Timer,
|
||||
|
||||
pub const components = .{
|
||||
.{ .name = .follower, .type = void },
|
||||
.follower = .{ .type = void },
|
||||
};
|
||||
|
||||
pub const global_events = .{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue