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

Archetype lookup key that compares against a component term span instead of a full archetype id. More...

#include <archetype.h>

+ Inheritance diagram for gaia::ecs::ArchetypeLookupChecker:

Public Member Functions

 ArchetypeLookupChecker (EntitySpan comps)
 
GAIA_NODISCARD bool cmp_comps (const ArchetypeLookupChecker &other) const
 Compares the lookup checker component spans in archetype order.
 
- Public Member Functions inherited from gaia::ecs::ArchetypeBase
GAIA_NODISCARD ArchetypeId id () const
 Archetype id used to address the archetype in the world list.
 

Friends

class Archetype
 

Additional Inherited Members

- Protected Attributes inherited from gaia::ecs::ArchetypeBase
ArchetypeId m_archetypeId = ArchetypeIdBad
 Archetype ID - used to address the archetype directly in the world's list or archetypes.
 

Detailed Description

Archetype lookup key that compares against a component term span instead of a full archetype id.

Member Function Documentation

◆ cmp_comps()

GAIA_NODISCARD bool gaia::ecs::ArchetypeLookupChecker::cmp_comps ( const ArchetypeLookupChecker other) const
inline

Compares the lookup checker component spans in archetype order.

Parameters
otherOther checker to compare against.
Returns
True when both spans match element-wise.

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