24 ref() : world_(
nullptr), ref_{} { }
26 ref(world_t *
world, entity_t entity, flecs::id_t
id = 0)
38 "operation invalid for empty type");
44 : ref(entity.world(), entity.id(),
id) { }
48 world_, &ref_, this->ref_.id));
50 ecs_assert(result != NULL, ECS_INVALID_PARAMETER,
51 "nullptr dereference by flecs::ref");
58 world_, &ref_, this->ref_.id));
62 if (!world_ || !ref_.entity) {