since World.component(world) was being unused, it is now treated the same exact way as World.entity(world)
local world = Jecs.World.new()
local Player = world:component()
local Health = world:component()
local someEntity = world:entity()
world:set(someEntity, Player, 0)
world:set(someEntity, Health, {
current = 100,
max = 100,
regen = 0.01
})
for id, player, health in world:query(Player, Health) do
print(id, player, health)
end
-- output: 263 0 { current = 100, max = 100, regen = 0.01 }
since
World.component(world)
was being unused, it is now treated the same exact way asWorld.entity(world)