diplomacy menu & stance changes

This commit is contained in:
Chris Forbes
2010-04-20 20:13:03 +12:00
parent 71f79d322d
commit 60f5e4d13e
9 changed files with 165 additions and 6 deletions

View File

@@ -48,6 +48,14 @@ namespace OpenRA.Network
Game.SyncLobbyInfo(order.TargetString);
break;
}
case "SetStance":
{
var targetPlayer = order.Player.World.players[order.TargetLocation.X];
order.Player.Stances[targetPlayer] = (Stance)order.TargetLocation.Y;
Game.Debug("{0} has set diplomatic stance vs {1} to {2}".F(
order.Player.PlayerName, targetPlayer.PlayerName, (Stance)order.TargetLocation.Y));
break;
}
default:
{
if( !order.IsImmediate )