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

@ -7,7 +7,7 @@ const query_mod = @import("query.zig");
const Archetype = @import("Archetype.zig");
const StringTable = @import("StringTable.zig");
const comp = @import("comptime.zig");
const NamespacedComponents = @import("../module.zig").NamespacedComponents;
const ComponentTypesByName = @import("../module.zig").ComponentTypesByName;
/// An entity ID uniquely identifies an entity globally within an Entities set.
pub const EntityID = u64;
@ -750,7 +750,7 @@ test "example" {
const Rotation = struct { degrees: f32 };
const all_components = NamespacedComponents(.{
const all_components = ComponentTypesByName(.{
struct {
pub const name = .game;
pub const events = .{};
@ -855,7 +855,7 @@ test "many entities" {
const Rotation = struct { degrees: f32 };
const all_components = NamespacedComponents(.{
const all_components = ComponentTypesByName(.{
struct {
pub const name = .game;
pub const events = .{};

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 = .{};