module: rename NamespacedComponents -> ComponentTypesByName

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-27 10:42:23 -07:00 committed by Stephen Gutekanst
parent 2e7cb30bc9
commit a83f9d5be8
3 changed files with 16 additions and 13 deletions

View file

@ -1,6 +1,6 @@
const std = @import("std");
const testing = std.testing;
const NamespacedComponents = @import("../module.zig").NamespacedComponents;
const ComponentTypesByName = @import("../module.zig").ComponentTypesByName;
pub const QueryTag = enum {
any,
@ -70,7 +70,7 @@ test "query" {
const Rotation = struct { degrees: f32 };
const all_components = NamespacedComponents(.{
const all_components = ComponentTypesByName(.{
struct {
pub const name = .game;
pub const events = .{};