Entity-scoped component accessor bound to a specific world, chunk and row. It is not a standalone chunk view and expects the referenced entity to remain valid.
More...
#include <component_getter.h>
|
|
| ComponentGetter (const World &world, const Chunk *pChunk, Entity entity, uint16_t row) |
| |
| template<typename T > |
| GAIA_NODISCARD decltype(auto) | get () const |
| | Returns the value stored in the component T on entity.
|
| |
| template<typename T > |
| GAIA_NODISCARD decltype(auto) | get (Entity type) const |
| | Returns the value stored in the component associated with type on entity.
|
| |
|
template<typename T > |
| GAIA_NODISCARD decltype(auto) | get (Entity type) const |
| |
Entity-scoped component accessor bound to a specific world, chunk and row. It is not a standalone chunk view and expects the referenced entity to remain valid.
◆ get() [1/2]
template<typename T >
| GAIA_NODISCARD decltype(auto) gaia::ecs::ComponentGetter::get |
( |
| ) |
const |
|
inline |
Returns the value stored in the component T on entity.
- Template Parameters
-
- Returns
- Value stored in the component.
◆ get() [2/2]
template<typename T >
| GAIA_NODISCARD decltype(auto) gaia::ecs::ComponentGetter::get |
( |
Entity |
type | ) |
const |
Returns the value stored in the component associated with type on entity.
- Template Parameters
-
- Parameters
-
| type | Entity associated with the component type |
The documentation for this struct was generated from the following files:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/ecs/component_getter.h
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/ecs/world.h