mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 03:09:18 +00:00
Update README.md
This commit is contained in:
parent
9109e3de90
commit
a9cde98508
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ world:set(sara, Name, "sara")
|
|||
|
||||
print(getName(parent(sara)))
|
||||
|
||||
for e in world:query(pair(ChildOf, alice)) do
|
||||
print(getName(e), "is the child of alice")
|
||||
for e, name in world:query(Name, pair(ChildOf, alice)) do
|
||||
print(name, "is the child of alice")
|
||||
end
|
||||
|
||||
-- Output
|
||||
|
|
Loading…
Reference in a new issue