Clears events and updates all queries.
You should call this method at the beginning of every frame. Failing to do so would allow events to pile-up between frames and make queries return outdated results.
ecs:update()
local ecs = crystal.ECS:new(); ecs:update();