CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::NetworkClientIDAllocator Class Reference

#include <CeresEngine/Network/NetworkClient.hpp>

Public Member Functions

NetworkClientID operator() () noexcept
 Allocates a new client ID.
 

Private Attributes

Atomic< decltype(NetworkClientID::raw)> nextID = 0
 The next raw ID to be allocated.
 

Member Function Documentation

◆ operator()()

NetworkClientID CeresEngine::NetworkClientIDAllocator::operator() ( )
inlinenoexcept

Allocates a new client ID.

Returns
The allocated client ID

Member Data Documentation

◆ nextID

Atomic<decltype(NetworkClientID::raw)> CeresEngine::NetworkClientIDAllocator::nextID = 0
private

The next raw ID to be allocated.


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