Unravel Engine C++ Reference
Loading...
Searching...
No Matches
id_component.h
Go to the documentation of this file.
1#pragma once
2#include <engine/engine_export.h>
3
4#include <string>
5#include <uuid/uuid.h>
6
7namespace unravel
8{
9
15{
17 {
18 id = generate_uuid();
19 }
20
22 {
23 if(id.is_nil())
24 {
25 id = generate_uuid();
26 }
27 }
31 hpp::uuid id;
32};
33
34} // namespace unravel
auto generate_uuid() -> hpp::uuid
Definition uuid.cpp:25
Component that provides a unique identifier (UUID) for an entity.
hpp::uuid id
The unique identifier for the entity.