Added SwitchStateCommand ability, Future (replace dual lists to single Dictionary)
This commit is contained in:
parent
a0c406d482
commit
ca97b9c439
7 changed files with 69 additions and 3 deletions
|
@ -38,6 +38,11 @@ namespace WinPC.Engine.States
|
|||
|
||||
var input = Director.RecieveInput(Index);
|
||||
|
||||
if (input == "menu")
|
||||
{
|
||||
return new SwitchStateCommand(Director, new MainMenuState(Director), Index);
|
||||
}
|
||||
|
||||
return new InvalidCommand(Connection);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue