Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::Entity Struct Referencefinal

Classes

struct  InternalData
 

Public Member Functions

template<typename T , typename = std::enable_if_t<std::is_same_v<T, Identifier>>>
constexpr Entity (T value) noexcept
 We need the entity to be braces-constructible and at the same type prevent it from getting constructed accidentally from an int (e.g .Entity::id()). Therefore, only allow Entity(Identifier) to be used.
 
 Entity (EntityId id, IdentifierData gen) noexcept
 Special constructor for cnt::ilist.
 
 Entity (EntityId id, IdentifierData gen, bool isEntity, bool isPair, EntityKind kind) noexcept
 
GAIA_NODISCARD constexpr auto id () const noexcept
 
GAIA_NODISCARD constexpr auto gen () const noexcept
 
GAIA_NODISCARD constexpr bool entity () const noexcept
 
GAIA_NODISCARD constexpr bool pair () const noexcept
 
GAIA_NODISCARD constexpr bool comp () const noexcept
 
GAIA_NODISCARD constexpr auto kind () const noexcept
 
GAIA_NODISCARD constexpr auto value () const noexcept
 
GAIA_NODISCARD constexpr bool operator== (Entity other) const noexcept
 
GAIA_NODISCARD constexpr bool operator!= (Entity other) const noexcept
 
GAIA_NODISCARD constexpr bool operator< (Entity other) const noexcept
 
GAIA_NODISCARD constexpr bool operator<= (Entity other) const noexcept
 
GAIA_NODISCARD constexpr bool operator> (Entity other) const noexcept
 
GAIA_NODISCARD constexpr bool operator>= (Entity other) const noexcept
 

Public Attributes

union { 
 
   InternalData   data 
 
   Identifier   val 
 
};  
 

Static Public Attributes

static constexpr uint32_t IdMask = IdentifierIdBad
 

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