mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 19:29:18 +00:00
Compare commits
1 commit
b07941ed01
...
43f9e7bc72
Author | SHA1 | Date | |
---|---|---|---|
|
43f9e7bc72 |
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, name in world:query(Name, pair(ChildOf, alice)) do
|
for e in world:query(pair(ChildOf, alice)) do
|
||||||
print(name, "is the child of alice")
|
print(getName(e), "is the child of alice")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Output
|
-- Output
|
||||||
|
|
Loading…
Reference in a new issue