Client architecture has been refactored to be fully server-authoritative, remove the previous "hybrid" model that supported both local and remote command execution, that was a stupid idea. - Client now connects to server on startup. - The local command processor and VFS have been removed from the Terminal class. - All command processing is now handled by the server. - The client is now just a thin client essentially I'll in the future enable single player mode by running the server on the local machine in a separate thread.
14 lines
280 B
C++
14 lines
280 B
C++
#include <cstdio>
|
|
|
|
#include "network_manager.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
printf("=== Server starting ===\n");
|
|
|
|
NetworkManager* net_manager = new NetworkManager();
|
|
net_manager->start(); /* Our loop. */
|
|
|
|
delete net_manager; /* Shouldn't get here. */
|
|
return 0;
|
|
}
|