2#include "gaia/config/config.h"
6#include "gaia/ecs/chunk.h"
7#include "gaia/ecs/component.h"
8#include "gaia/ecs/component_getter.h"
17 decltype(
auto)
mut() {
18 return const_cast<Chunk*
>(m_pChunk)->
template set<T>(m_row);
25 template <typename T, typename U = typename actual_type_t<T>::Type>
27 mut<T>() = GAIA_FWD(value);
36 return const_cast<Chunk*
>(m_pChunk)->
template set<T>(m_row, type);
46 mut<T>(type) = GAIA_FWD(value);
55 return const_cast<Chunk*
>(m_pChunk)->
template sset<T>(m_row);
62 template <typename T, typename U = typename actual_type_t<T>::Type>
64 smut<T>() = GAIA_FWD(value);
74 return const_cast<Chunk*
>(m_pChunk)->
template sset<T>(type);
84 smut<T>(type) = GAIA_FWD(value);
Checks if endianess was detected correctly at compile-time.
Definition bitset.h:9
Definition component_getter.h:11
Definition component_setter.h:12
decltype(auto) mut()
Returns a mutable reference to component.
Definition component_setter.h:17
decltype(auto) mut(Entity type)
Returns a mutable reference to component.
Definition component_setter.h:35
ComponentSetter & sset(Entity type, T &&value)
Sets the value of the component without triggering a world version update.
Definition component_setter.h:83
ComponentSetter & set(U &&value)
Sets the value of the component.
Definition component_setter.h:26
decltype(auto) smut()
Returns a mutable reference to component without triggering a world version update.
Definition component_setter.h:54
decltype(auto) smut(Entity type)
Returns a mutable reference to component without triggering a world version update.
Definition component_setter.h:73
ComponentSetter & sset(U &&value)
Sets the value of the component without triggering a world version update.
Definition component_setter.h:63
ComponentSetter & set(Entity type, T &&value)
Sets the value of the component type.
Definition component_setter.h:45