Function module

Synopsis

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

template <typename T>
flecs::entity module(const flecs::world &world)

Description

No description yet.

Mentioned in

Source

Lines 9-14 in include/flecs/addons/cpp/module.hpp.

template <typename T>
flecs::entity module(const flecs::world& world) {
    flecs::entity result = world.id<T>().entity();
    ecs_set_scope(world, result);
    return result;
}