Function emplace_override

Synopsis

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

template <typename T, typename ... Args>
Self & emplace_override(Args &&... args)

Description

Emplace component, mark component for auto-overriding.

See
override(flecs::id_t id)
Template Parameters

T - The component to set and for which to add the OVERRIDE flag

Source

Lines 430-438 in include/flecs/addons/cpp/mixins/entity/builder.hpp.

template <typename T, typename ... Args>
Self& emplace_override(Args&&... args) {
    this->override<T>();
    flecs::emplace<T>(this->m_world, this->m_id, 
        FLECS_FWD(args)...);
    return to_base();  
}