WIP now subscribing to the created event in game.cpp.

This commit is contained in:
stiffly
2016-03-10 14:34:13 +01:00
parent d7f166b8ae
commit 0ee3385e96
4 changed files with 27 additions and 19 deletions
+2
View File
@@ -45,7 +45,9 @@ bool MainMenuSystem::OnButtonPress(const Events::ButtonPressed& e)
bool MainMenuSystem::OnInputCommand(const Events::InputCommand& e)
{
if (e.Command == "Host" && e.Value == 1) {
printf("Sending event...\n");
m_EventBroker->Publish(Events::BecomeServer());
return true;
}
if (e.Command == "Play" && e.Value == 1) {
auto menus = m_World->GetComponents("Menu");