Jecs v0.1.0-rc.6
Basically just added a wildcard term which lets you query any partially matched pairs
world:set(bob, pair(Eats, Apples), 10)
world:set(alice, pair(Eats, Oranges), 4)
for e, amount in world:query(pair(Eats, Wildcard)) do
print(`{getName(e)} eats {amount} fruits`)
end
--[[
bob eats 10 fruits
alice eats 4 fruits
]]
Install with Wally: ukendio/[email protected]
Full Changelog: v0.1.0-rc.5...v0.1.0-rc.6