Entity:ecs

Returns the ECS this entity belongs to.

Usage

entity:ecs()

Returns

Name Type Description
ecs ECS ECS this entity belongs to.

Examples

local ecs = crystal.ECS:new();
local entity = ecs:spawn(crystal.Entity);
assert(entity:ecs() == ecs);

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