added palette changing

This commit is contained in:
Chris Forbes
2009-12-02 20:07:19 +13:00
parent 6d9455fc49
commit 7e064fec1a
2 changed files with 24 additions and 0 deletions

View File

@@ -137,6 +137,16 @@ namespace OpenRa.Game
lag)));
break;
}
case "SetPalette":
{
int palette = int.Parse(order.TargetString);
Game.chat.AddLine(Pair.New(order.Player.PlayerName,
string.Format("has changed color to {0}",
palette)));
order.Player.Palette = palette;
break;
}
case "StartGame":
{
Game.chat.AddLine(Pair.New("Server:", "The game has started."));