Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Physics::CollisionProfileHandle Struct Reference

Registry handle for a collision profile name. More...

#include <CollisionProfile.h>

Public Member Functions

bool isValid () const
 Checks whether this handle refers to a registered profile slot.

Public Attributes

std::uint32_t id = 0
 One-based profile index in the registry, or 0 for an invalid handle.

Detailed Description

Registry handle for a collision profile name.

Handles are valid only within the CollisionProfileRegistry that created them. The default handle {0} is invalid.

Definition at line 66 of file CollisionProfile.h.

Member Function Documentation

◆ isValid()

bool Engine::Physics::CollisionProfileHandle::isValid ( ) const
inlinenodiscard

Checks whether this handle refers to a registered profile slot.

Returns
True when the handle contains a non-zero profile id.

Definition at line 74 of file CollisionProfile.h.

Member Data Documentation

◆ id

std::uint32_t Engine::Physics::CollisionProfileHandle::id = 0

One-based profile index in the registry, or 0 for an invalid handle.

Definition at line 68 of file CollisionProfile.h.


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