Implemented the log on and log off systems
This is a pretty straight forward port of the old version, including the incredibly hacky server list. But I just need to remember that this is a prototype.
This commit is contained in:
@@ -36,6 +36,15 @@
|
||||
#include "config_utility.hpp"
|
||||
#include "world_room.hpp"
|
||||
|
||||
#include <map>
|
||||
|
||||
//hold the client info
|
||||
struct ClientInformation {
|
||||
static int counter;
|
||||
int index;
|
||||
IPaddress address;
|
||||
};
|
||||
|
||||
//The main application class
|
||||
class ServerApplication {
|
||||
public:
|
||||
@@ -63,6 +72,8 @@ private:
|
||||
bool running = true;
|
||||
ConfigUtility config;
|
||||
WorldRoom worldRoom;
|
||||
|
||||
std::map<int, ClientInformation> clientInfo;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user