Class entity_builder_base

Synopsis

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

template<typename T, typename Base>
class entity_builder_base

Description

No description yet.

Methods

base
base_id
base_world
operator const Base &

Source

Lines 4-13 in include/flecs/addons/cpp/entity.hpp.

template<typename T, typename Base>
class entity_builder_base {
public:
    const Base& base() const { return *static_cast<const Base*>(this); }
    flecs::world_t* base_world() const { return base().world(); }
    flecs::entity_t base_id() const { return base().id(); }
    operator const Base&() const {
        return this->base();
    }
};