Clementine
|
Mixin type to use to add signal support to storage types. More...
#include <entt.hpp>
Public Types | |
using | value_type = typename Type::value_type |
Underlying value type. | |
using | entity_type = typename Type::entity_type |
Underlying entity identifier. | |
using | storage_category = typename Type::storage_category |
Storage category. | |
Public Member Functions | |
auto | on_construct () ENTT_NOEXCEPT |
Returns a sink object. More... | |
auto | on_update () ENTT_NOEXCEPT |
Returns a sink object. More... | |
auto | on_destroy () ENTT_NOEXCEPT |
Returns a sink object. More... | |
template<typename... Args> | |
decltype(auto) | emplace (basic_registry< entity_type > &owner, const entity_type entity, Args &&... args) |
Assigns entities to a storage. More... | |
template<typename It , typename... Args> | |
void | insert (basic_registry< entity_type > &owner, It first, It last, Args &&... args) |
Assigns entities to a storage. More... | |
void | remove (basic_registry< entity_type > &owner, const entity_type entity) |
Removes entities from a storage. More... | |
template<typename It > | |
void | remove (basic_registry< entity_type > &owner, It first, It last) |
Removes entities from a storage. More... | |
template<typename... Func> | |
decltype(auto) | patch (basic_registry< entity_type > &owner, const entity_type entity, [[maybe_unused]] Func &&... func) |
Patches the given instance for an entity. More... | |
Mixin type to use to add signal support to storage types.
Type | The type of the underlying storage. |
|
inline |
Assigns entities to a storage.
Args | Types of arguments to use to construct the object. |
owner | The registry that issued the request. |
entity | A valid entity identifier. |
args | Parameters to use to initialize the object. |
|
inline |
Assigns entities to a storage.
It | Type of input iterator. |
Args | Types of arguments to use to construct the objects associated with the entities. |
owner | The registry that issued the request. |
first | An iterator to the first element of the range of entities. |
last | An iterator past the last element of the range of entities. |
args | Parameters to use to initialize the objects associated with the entities. |
|
inline |
Returns a sink object.
The sink returned by this function can be used to receive notifications whenever a new instance is created and assigned to an entity.
The function type for a listener is equivalent to:
Listeners are invoked after the object has been assigned to the entity.
|
inline |
Returns a sink object.
The sink returned by this function can be used to receive notifications whenever an instance is removed from an entity and thus destroyed.
The function type for a listener is equivalent to:
Listeners are invoked before the object has been removed from the entity.
|
inline |
Returns a sink object.
The sink returned by this function can be used to receive notifications whenever an instance is explicitly updated.
The function type for a listener is equivalent to:
Listeners are invoked after the object has been updated.
|
inline |
Patches the given instance for an entity.
Func | Types of the function objects to invoke. |
owner | The registry that issued the request. |
entity | A valid entity identifier. |
func | Valid function objects. |
|
inline |
Removes entities from a storage.
owner | The registry that issued the request. |
entity | A valid entity identifier. |
|
inline |
Removes entities from a storage.
It | Type of input iterator. |
owner | The registry that issued the request. |
first | An iterator to the first element of the range of entities. |
last | An iterator past the last element of the range of entities. |