From 7fc5dbba4da0b93bf2092ef9f622762b90cb32ff Mon Sep 17 00:00:00 2001 From: copygirl Date: Tue, 5 Mar 2024 13:41:26 +0100 Subject: [PATCH] Remove Path from Context --- src/main.zig | 2 -- src/test/flecs/entity.zig | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.zig b/src/main.zig index b81d1f7..2de85b9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -42,8 +42,6 @@ pub fn Context(comptime ctx: anytype) type { pub const Pair = @import("./pair.zig").Pair(ctx); pub const World = @import("./world.zig").World(ctx); - pub const Path = @import("./path.zig"); - /// Returns a pointer unique to this context and the provided type /// that holds an entity ID. Useful for associating types to entities. pub fn lookup(comptime T: type) *c.ecs_entity_t { diff --git a/src/test/flecs/entity.zig b/src/test/flecs/entity.zig index cb5e2c7..c228f58 100644 --- a/src/test/flecs/entity.zig +++ b/src/test/flecs/entity.zig @@ -9,11 +9,11 @@ const util = @import("../util.zig"); const flecs = @import("../../main.zig"); const FlecsError = flecs.FlecsError; +const Path = flecs.Path; const c = flecs.c; const Context = flecs.Context(void); const Entity = Context.Entity; -const Path = Context.Path; const World = Context.World; test "Entity_init_id" {