Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Aug 9, 2024
1 parent f2e2def commit 4709f4d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ local pair = jecs.pair
local ChildOf = world:component()
local Name = world:component()

local function parent(entity)
local function parent(entity)
return world:target(entity, ChildOf)
end
local function getName(entity)
local function getName(entity)
return world:get(entity, Name)
end

Expand All @@ -48,7 +48,7 @@ world:set(sara, Name, "sara")

print(getName(parent(sara)))

for e in world:query(pair(ChildOf, alice)) do
for e in world:query(pair(ChildOf, alice)) do
print(getName(e), "is the child of alice")
end

Expand All @@ -60,8 +60,8 @@ end

21,000 entities 125 archetypes 4 random components queried.
![Queries](image-3.png)
Can be found under /benches/query.lua
Can be found under /benches/visual/query.luau

Inserting 8 components to an entity and updating them over 50 times.
![Insertions](image-4.png)
Can be found under /benches/insertions.lua
Can be found under /benches/visual/insertions.luau

0 comments on commit 4709f4d

Please sign in to comment.