added World.NeutralPlayer

This commit is contained in:
Chris Forbes
2010-03-17 19:19:35 +13:00
parent e30fa307cf
commit b1d7f1fd69
6 changed files with 14 additions and 9 deletions

View File

@@ -49,6 +49,11 @@ namespace OpenRA
get { return players[localPlayerIndex]; }
}
public Player NeutralPlayer
{
get { return players[0]; } // todo, perhaps.
}
public void SetLocalPlayer(int index)
{
if (index != localPlayerIndex)