You can now choose if you want to become a client or a server from the menu.

This commit is contained in:
stiffly
2016-03-11 11:49:38 +01:00
parent 7d4b9927d8
commit e0a1550acd
6 changed files with 47 additions and 29 deletions
+3 -1
View File
@@ -29,7 +29,7 @@
#include "Network/Network.h"
#include "Network/Server.h"
#include "Network/Client.h"
#include "Network/EBecomeServer.h"
#include "Network/EBecomeServerOrClient.h"
// Sound
#include "Sound/SoundManager.h"
@@ -74,6 +74,8 @@ private:
EventRelay<Game, Events::BecomeServer> m_EBecomeServer;
bool OnBecomeServer(const Events::BecomeServer& e);
EventRelay<Game, Events::BecomeClient> m_EBecomeClient;
bool OnBecomeClient(const Events::BecomeClient& e);
};
#endif
+1 -1
View File
@@ -14,7 +14,7 @@
#include "Input/EInputCommand.h"
#include "Network/ESearchForServers.h"
#include "Network/EConnectRequest.h"
#include "Network/EBecomeServer.h"
#include "Network/EBecomeServerOrClient.h"
class MainMenuSystem : public ImpureSystem