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:
Kayne Ruse
2013-11-23 17:53:36 +11:00
parent ca86dc5fb8
commit 6ccc874583
11 changed files with 220 additions and 68 deletions
+11
View File
@@ -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