EnTT 3.13.2
|
Signal connection helper for registries. More...
#include <helper.hpp>
Public Types | |
using | registry_type = Registry |
Registry type. | |
![]() | |
using | registry_type = Registry |
Registry type. | |
Public Member Functions | |
sigh_helper (registry_type &ref, const id_type id=type_hash< Type >::value()) | |
Constructs a helper for a given registry. | |
template<auto Candidate, typename... Args> | |
auto | on_construct (Args &&...args) |
Forwards the call to on_construct on the underlying storage. | |
template<auto Candidate, typename... Args> | |
auto | on_update (Args &&...args) |
Forwards the call to on_update on the underlying storage. | |
template<auto Candidate, typename... Args> | |
auto | on_destroy (Args &&...args) |
Forwards the call to on_destroy on the underlying storage. | |
![]() | |
sigh_helper (registry_type &ref) | |
Constructs a helper for a given registry. | |
template<typename Type > | |
auto | with (const id_type id=type_hash< Type >::value()) noexcept |
Binds a properly initialized helper to a given signal type. | |
registry_type & | registry () noexcept |
Returns a reference to the underlying registry. | |
Signal connection helper for registries.
Registry | Basic registry type. |
Type | Type of signal to connect listeners to. |
Definition at line 208 of file helper.hpp.
using entt::sigh_helper< Registry, Type >::registry_type = Registry |
Registry type.
Definition at line 210 of file helper.hpp.
|
inline |
Constructs a helper for a given registry.
ref | A valid reference to a registry. |
id | Optional name for the underlying storage to use. |
Definition at line 217 of file helper.hpp.
|
inline |
Forwards the call to on_construct
on the underlying storage.
Candidate | Function or member to connect. |
Args | Type of class or type of payload, if any. |
args | A valid object that fits the purpose, if any. |
Definition at line 229 of file helper.hpp.
|
inline |
Forwards the call to on_destroy
on the underlying storage.
Candidate | Function or member to connect. |
Args | Type of class or type of payload, if any. |
args | A valid object that fits the purpose, if any. |
Definition at line 255 of file helper.hpp.
|
inline |
Forwards the call to on_update
on the underlying storage.
Candidate | Function or member to connect. |
Args | Type of class or type of payload, if any. |
args | A valid object that fits the purpose, if any. |
Definition at line 242 of file helper.hpp.