engine/ecs/EntityHandle.ixx File
Versioned handle for referencing entities in an EntityPool. More...
Included Headers
#include <functional>
#include <helios.engine.common.types.VersionId>
#include <helios.engine.ecs.types>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | ecs |
|
Core Entity-Component-System architecture. More... | |
Classes Index
| struct | EntityHandle |
|
A versioned handle for referencing entities in an EntityPool. More... | |
| struct | hash<helios::engine::ecs::EntityHandle> |
|
Hash specialization for EntityHandle. More... | |
Description
Versioned handle for referencing entities in an EntityPool.
File Listing
The file content with the documentation metadata removed is:
16export namespace helios::engine::ecs {
27 struct EntityHandle {
44 bool operator==(const EntityHandle&) const = default;
53 constexpr bool operator<(const EntityHandle& entityHandle) const noexcept {
54 return entityId < entityHandle.entityId;
64 constexpr bool operator>(const EntityHandle& entityHandle) const noexcept {
65 return entityId > entityHandle.entityId;
74 return versionId >= 1;
88 std::size_t operator()(const helios::engine::ecs::EntityHandle& handle) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.