Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::UUID Struct Reference

Universally Unique Identifier component. More...

#include <Common.hpp>

Public Member Functions

 UUID ()=default
 UUID (u64 id)
bool operator== (const UUID &other) const
bool operator!= (const UUID &other) const

Public Attributes

u64 value {0}
 The unique identifier.

Detailed Description

Universally Unique Identifier component.

Provides a stable identifier for entities that persists across save/load cycles. Useful for serialization and cross-references.

Definition at line 124 of file Common.hpp.

Constructor & Destructor Documentation

◆ UUID() [1/2]

esengine::ecs::UUID::UUID ( )
default

Referenced by operator!=(), and operator==().

◆ UUID() [2/2]

esengine::ecs::UUID::UUID ( u64 id)
inlineexplicit

Definition at line 129 of file Common.hpp.

References value.

Member Function Documentation

◆ operator!=()

bool esengine::ecs::UUID::operator!= ( const UUID & other) const
inline

Definition at line 132 of file Common.hpp.

References UUID(), and value.

◆ operator==()

bool esengine::ecs::UUID::operator== ( const UUID & other) const
inline

Definition at line 131 of file Common.hpp.

References UUID(), and value.

Member Data Documentation

◆ value

u64 esengine::ecs::UUID::value {0}

The unique identifier.

Definition at line 126 of file Common.hpp.

Referenced by UUID(), operator!=(), and operator==().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/Common.hpp