mirror of
https://github.com/Ukendio/jecs.git
synced 2025-07-01 20:59:16 +00:00
Update README.md
Some checks failed
Some checks failed
This commit is contained in:
parent
37f1e5be52
commit
24dddee82e
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ world:set(sara, Name, "sara")
|
||||||
|
|
||||||
print(getName(parent(sara)))
|
print(getName(parent(sara)))
|
||||||
|
|
||||||
for e in world:query(pair(ChildOf, alice)) do
|
for e, name in world:query(Name, pair(ChildOf, alice)) do
|
||||||
print(getName(e), "is the child of alice")
|
print(name, "is the child of alice")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Output
|
-- Output
|
||||||
|
|
Loading…
Reference in a new issue