ECS:update

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.

Usage

ecs:update()

Examples

local ecs = crystal.ECS:new();
ecs:update();

This site uses Just the Docs, a documentation theme for Jekyll.