System:ecs

Returns the ECS this system belongs to.

Usage

system:ecs()

Returns

Name Type Description
ecs ECS ECS this system belongs to.

Examples

local ecs = crystal.ECS:new();
local system = ecs:add_system(crystal.System);
assert(system:ecs() == ecs);

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