Function module

Synopsis

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

template <typename T>
flecs::entity module(const flecs::world &world, const char *name=nullptr)

Description

No description yet.

Mentioned in

Source

Lines 9-15 in include/flecs/cpp/module.hpp.

template <typename T>
flecs::entity module(const flecs::world& world, const char *name = nullptr) {
    ecs_set_scope(world.c_ptr(), 0);
    flecs::entity result = pod_component<T>(world, name, false);
    ecs_set_scope(world.c_ptr(), result.id());
    return result;
}