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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user