6namespace rtype::server {
17 std::atomic<std::uint32_t> _nextId{1000};
Process wide source of unique network entity ids, starting at 1000.
Definition NetworkIdGenerator.hpp:15
static NetworkIdGenerator & getInstance()
Returns the single generator instance.
Definition NetworkIdGenerator.hpp:26
std::uint32_t getNextId()
Returns a new id, thread safe.
Definition NetworkIdGenerator.hpp:38