33474cc6c0
The clients can connect and disconnect from the server with known no issues. There is no way to shutdown the server yet, but it might be possible to kick someone else from the server soon.
14 lines
291 B
C++
14 lines
291 B
C++
#ifndef INFORMATIONMANAGER_HPP_
|
|
#define INFORMATIONMANAGER_HPP_
|
|
|
|
class InformationManager {
|
|
public:
|
|
int SetClientIndex(int i) { return clientIndex = i; }
|
|
int GetClientIndex() { return clientIndex; }
|
|
void ResetClientIndex() { clientIndex = -1; }
|
|
private:
|
|
int clientIndex = -1;
|
|
};
|
|
|
|
#endif
|