Returns the ECS this entity belongs to.
entity:ecs()
ecs
local ecs = crystal.ECS:new(); local entity = ecs:spawn(crystal.Entity); assert(entity:ecs() == ecs);