Function get_world

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

flecs::world get_world() const

Description

Get actual world. If the current object points to a stage, this operation will return the actual world.

Returns
The actual world.

Source

Lines 414-418 in include/flecs/addons/cpp/world.hpp.

flecs::world get_world() const {
    /* Safe cast, mutability is checked */
    return flecs::world(
        m_world ? const_cast<flecs::world_t*>(ecs_get_world(m_world)) : nullptr);
}