Started work on network object system
This commit is contained in:
parent
a2ce579b8b
commit
ed4810e6ee
12 changed files with 394 additions and 74 deletions
14
include/Helpers/NetworkingObjects/NetObjIDGenerator.cpp
Normal file
14
include/Helpers/NetworkingObjects/NetObjIDGenerator.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "NetObjIDGenerator.hpp"
|
||||
|
||||
namespace NetworkingObjects {
|
||||
|
||||
void NetObjIDGenerator::set_starting_id(NetObjID c) {
|
||||
currentID = c;
|
||||
}
|
||||
|
||||
NetObjID NetObjIDGenerator::gen() {
|
||||
currentID.clientID++;
|
||||
return currentID;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue