Skip to content

Jecs v0.1.0-rc.6

Compare
Choose a tag to compare
@Ukendio Ukendio released this 12 May 23:25
· 359 commits to main since this release
2df5f3f

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