Added generic serialized class and changed to random 128 bit IDs for objects
This commit is contained in:
parent
35b46d9d2b
commit
5d24b34200
11 changed files with 113 additions and 69 deletions
10
include/Helpers/NetworkingObjects/NetObjID.cpp
Normal file
10
include/Helpers/NetworkingObjects/NetObjID.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "NetObjID.hpp"
|
||||
|
||||
namespace NetworkingObjects {
|
||||
|
||||
|
||||
NetObjID NetObjID::random_gen() {
|
||||
return NetObjID{.data = {Random::get().randGen(), Random::get().randGen()}};
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue