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
+9
View File
@@ -52,6 +52,9 @@ union NetworkPacket {
//mass update
SYNCHRONIZE = 8,
//shut down the server
SHUTDOWN = 9,
//Player movement, etc.
};
@@ -69,6 +72,12 @@ union NetworkPacket {
//TODO: player count
}serverInfo;
//information about the client
struct ClientInformation {
Metadata meta;
int index;
}clientInfo;
//defaults
NetworkPacket() {
meta.type = Type::NONE;