name setting

This commit is contained in:
Chris Forbes
2009-12-02 18:33:07 +13:00
parent 7ff7574d3d
commit cacdd379e5
2 changed files with 20 additions and 1 deletions

View File

@@ -108,6 +108,12 @@ namespace OpenRa.Game
Game.chat.AddLine(Pair.New(order.Player.PlayerName, "is now YOU."));
break;
}
case "SetName":
{
Game.chat.AddLine(Pair.New(order.Player.PlayerName, "is now known as " + order.TargetString));
order.Player.PlayerName = order.TargetString;
break;
}
case "StartGame":
{
Game.chat.AddLine(Pair.New("Server:", "The game has started."));