|
|
| CopyIter (CopyIter &&) noexcept=default |
| |
|
CopyIter & | operator= (CopyIter &&) noexcept=default |
| |
|
CopyIter & | operator= (const CopyIter &)=delete |
| |
| void | set_range (uint16_t from, uint16_t cnt) |
| | Sets the iterator's range.
|
| |
| void | set_world (const World *pWorld) |
| | Associates the iterator with its owning world.
|
| |
| GAIA_NODISCARD World * | world () |
| | Returns mutable access to the associated world.
|
| |
| GAIA_NODISCARD const World * | world () const |
| | Returns read-only access to the associated world.
|
| |
| void | set_archetype (const Archetype *pArchetype) |
| | Associates the iterator with the source archetype.
|
| |
| GAIA_NODISCARD const Archetype * | archetype () const |
| | Returns the associated source archetype.
|
| |
| void | set_chunk (Chunk *pChunk) |
| | Associates the iterator with a source chunk.
|
| |
| GAIA_NODISCARD const Chunk * | chunk () const |
| | Returns the associated source chunk.
|
| |
| GAIA_NODISCARD CommandBufferST & | cmd_buffer_st () const |
| | Returns the world's single-threaded command buffer.
|
| |
| GAIA_NODISCARD CommandBufferMT & | cmd_buffer_mt () const |
| | Returns the world's multi-threaded command buffer.
|
| |
| template<typename T > |
| GAIA_NODISCARD auto | view () const |
| | Returns a read-only entity or component view.
|
| |
| template<typename T > |
| GAIA_NODISCARD auto | view_mut () |
| | Returns a mutable entity or component view.
|
| |
| template<typename T > |
| GAIA_NODISCARD auto | sview_mut () |
| | Returns a mutable component view. Doesn't update the world version when the access is acquired.
|
| |
|
template<typename T , bool TriggerHooks> |
| void | modify () |
| | Marks the component T as modified. Best used with sview to manually trigger an update at user's whim. If TriggerHooks is true, also triggers the component's set hooks.
|
| |
| template<typename T > |
| GAIA_NODISCARD auto | view_auto () |
| | Returns either a mutable or immutable entity/component view based on the requested type. Value and const types are considered immutable. Anything else is mutable.
|
| |
| template<typename T > |
| GAIA_NODISCARD auto | sview_auto () |
| | Returns either a mutable or immutable entity/component view based on the requested type. Value and const types are considered immutable. Anything else is mutable. Doesn't update the world version when read-write access is acquired.
|
| |
| GAIA_NODISCARD bool | enabled (uint32_t index) const |
| | Checks if the entity at the current iterator index is enabled.
|
| |
| GAIA_NODISCARD bool | has (Entity entity) const |
| | Checks if entity entity is present in the chunk.
|
| |
| GAIA_NODISCARD bool | has (Pair pair) const |
| | Checks if relationship pair pair is present in the chunk.
|
| |
| template<typename T > |
| GAIA_NODISCARD bool | has () const |
| | Checks if component T is present in the chunk.
|
| |
| GAIA_NODISCARD uint16_t | size () const noexcept |
| | Returns the number of entities accessible via the iterator.
|
| |
Iterator used when copying entities.