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
+1
View File
@@ -50,6 +50,7 @@ bool MainMenuSystem::OnInputCommand(const Events::InputCommand& e)
return true;
}
if (e.Command == "Play" && e.Value == 1) {
m_EventBroker->Publish(Events::BecomeClient());
auto menus = m_World->GetComponents("Menu");
if (menus == nullptr) {
return 0;