![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Hashmap key for archetype lookup, combining a hash with the archetype base pointer. Hash collisions fall back to component-span comparison when no archetype id is set. More...
#include <archetype.h>
Public Member Functions | |
| ArchetypeLookupKey (Archetype::LookupHash hash, const ArchetypeBase *pArchetypeBase) | |
| GAIA_NODISCARD size_t | hash () const |
| Hash of the archetype lookup value. | |
| GAIA_NODISCARD Archetype * | archetype () const |
| Resolves the lookup key to its concrete archetype. | |
| GAIA_NODISCARD bool | operator== (const ArchetypeLookupKey &other) const |
Static Public Attributes | |
| static constexpr bool | IsDirectHashKey = true |
| Marks this key as a direct hash key. | |
Hashmap key for archetype lookup, combining a hash with the archetype base pointer. Hash collisions fall back to component-span comparison when no archetype id is set.
|
inline |
Resolves the lookup key to its concrete archetype.
|
inline |
Hash of the archetype lookup value.