Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::ComponentIndexEntry Struct Reference

One archetype record stored in the entity-to-archetype reverse index. More...

#include <query_common.h>

Public Member Functions

GAIA_NODISCARD bool matches (const Archetype *pOther) const
 Tests whether this record belongs to an archetype.
 

Public Attributes

ArchetypepArchetype = nullptr
 Archetype matched by the indexed entity or pair key.
 
uint16_t compIdx = ComponentIndexBad
 Component column index in pArchetype, or ComponentIndexBad when no direct column exists.
 
uint16_t matchCount = 0
 Number of archetype components contributing this lookup-key match.
 

Detailed Description

One archetype record stored in the entity-to-archetype reverse index.

Member Function Documentation

◆ matches()

GAIA_NODISCARD bool gaia::ecs::ComponentIndexEntry::matches ( const Archetype pOther) const
inline

Tests whether this record belongs to an archetype.

Parameters
pOtherArchetype pointer to compare.
Returns
True when pOther equals pArchetype.

The documentation for this struct was generated from the following file: