pub usingnamespace @import("./component.zig"); pub usingnamespace @import("./entity.zig"); pub usingnamespace @import("./id.zig"); pub usingnamespace @import("./iter.zig"); pub usingnamespace @import("./system.zig"); pub usingnamespace @import("./world.zig"); pub const c = @import("./c.zig"); pub fn Context(comptime ctx: anytype) type { return struct { pub const Entity = @import("./entity.zig").Entity(ctx); pub const Id = @import("./id.zig").Id(ctx); pub const Iter = @import("./iter.zig").Iter(ctx); pub const World = @import("./world.zig").World(ctx); }; } pub fn Lookup(comptime ctx: anytype, comptime T: type) type { _ = .{ ctx, T }; // Only necessary to create a unique type. return struct { pub var id: c.ecs_entity_t = 0; }; } test { const std = @import("std"); std.testing.refAllDecls(@This()); }