mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
24 lines
385 B
C
24 lines
385 B
C
|
#pragma once
|
||
|
|
||
|
// C++
|
||
|
#include <cstdint>
|
||
|
|
||
|
/*!
|
||
|
\file PersistentIDManager.h
|
||
|
\brief A manager that handles requests for object IDs
|
||
|
*/
|
||
|
|
||
|
//! The Object ID Manager
|
||
|
namespace PersistentIDManager {
|
||
|
//! Initializes the manager
|
||
|
void Initialize();
|
||
|
|
||
|
//! Generates a new persistent ID
|
||
|
/*!
|
||
|
\return The new persistent ID
|
||
|
*/
|
||
|
uint32_t GeneratePersistentID();
|
||
|
|
||
|
void SaveToDatabase();
|
||
|
};
|