Function modified

Synopsis

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

template <typename T>
void modified() const

Description

Mark singleton component as modified.

Source

Lines 90-94 in include/flecs/addons/cpp/impl/world.hpp. Line 544 in include/flecs/addons/cpp/world.hpp.

template <typename T>
void world::modified() const {
    flecs::entity e(m_world, _::cpp_type<T>::id(m_world));
    return e.modified<T>();
}