Skip to content

Engine → ECS → component.h

component_id

Syntax

struct component_id

Variables

AccessNameTypeDefaultDescription
publicINVALIDstatic constexpr u160xFFFF
publicvalueu16INVALID

Functions

Public

is_valid

[[nodiscard]] constexpr bool is_valid() const noexcept;

True for an id below MAX_COMPONENTS (not INVALID).

Operator Overloads

Public

operator==

[[nodiscard]] constexpr bool operator==(
    const component_id &other) const noexcept = default;