Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::ecs::ScheduleSystemId Struct Reference

Unique identifier for a system within a schedule. More...

#include <system_handle.hpp>

Public Member Functions

constexpr bool operator== (const ScheduleSystemId &) const noexcept=default
constexpr std::strong_ordering operator<=> (const ScheduleSystemId &) const noexcept=default

Public Attributes

SystemId id
size_t slot = 0
size_t generation = 0

Detailed Description

Unique identifier for a system within a schedule.

Combines the type-based SystemId with a per-schedule index for uniqueness, enabling the same system type to be added multiple times.

Definition at line 23 of file system_handle.hpp.

Member Function Documentation

◆ operator<=>()

std::strong_ordering helios::ecs::ScheduleSystemId::operator<=> ( const ScheduleSystemId & ) const
nodiscardconstexprdefaultnoexcept

◆ operator==()

bool helios::ecs::ScheduleSystemId::operator== ( const ScheduleSystemId & ) const
nodiscardconstexprdefaultnoexcept

Member Data Documentation

◆ generation

size_t helios::ecs::ScheduleSystemId::generation = 0

Definition at line 26 of file system_handle.hpp.

◆ id

SystemId helios::ecs::ScheduleSystemId::id

Definition at line 24 of file system_handle.hpp.

◆ slot

size_t helios::ecs::ScheduleSystemId::slot = 0

Definition at line 25 of file system_handle.hpp.