Pause the game option.

Game is paused when PAUSE on the keyboard has been hit. It can also be unpaused this way.
This commit is contained in:
Remco van der Zon
2012-05-16 17:35:10 +02:00
parent b99e664726
commit a07697be03
6 changed files with 36 additions and 5 deletions

View File

@@ -199,7 +199,18 @@ namespace OpenRA
{
return new Order("HandshakeResponse", null, false) { IsImmediate = true, TargetString = text };
}
public static Order PauseRequest()
{
return new Order("PauseRequest", null, false) { IsImmediate = true, TargetString="" }; //TODO: targetbool?
}
public static Order PauseGame()
{
return new Order("PauseGame", null, false) { IsImmediate = true, TargetString=""}; //TODO: targetbool?
}
public static Order Command(string text)
{
return new Order("Command", null, false) { IsImmediate = true, TargetString = text };