Skip to main content

CollisionLayer.ixx File

Type definitions for collision layer identifiers. More...

Included Headers

#include <cstdint> #include <limits>

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemodules

Domain-specific components and systems. More...

namespacephysics

Physics simulation and collision detection subsystem for the game engine. More...

namespacecollision
namespacetypes

Type definitions for collision system behavior configuration. More...

Description

Type definitions for collision layer identifiers.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file CollisionLayer.ixx
3 * @brief Type definitions for collision layer identifiers.
4 */
5module;
6
7#include <cstdint>
8#include <limits>
9
10export module helios.engine.modules.physics.collision.types.CollisionLayer;
11
12
13
15
16 /**
17 * @brief Type alias for collision layer identifiers.
18 *
19 * Collision layers are represented as bitmask values where each layer
20 * is a single bit. This allows efficient layer masking operations.
21 */
22 using CollisionLayer = uint32_t;
23
24 /**
25 * @brief Maximum number of distinct collision layers.
26 *
27 * Derived from the number of bits in CollisionLayer (32 for uint32_t).
28 */
29 constexpr std::size_t MAX_COLLISION_LAYERS = std::numeric_limits<CollisionLayer>::digits;
30
31
32}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.