separated 'index' from 'palette' in player

This commit is contained in:
Chris Forbes
2009-11-01 23:22:08 +13:00
parent e62a0bc717
commit 90ba576cc6
4 changed files with 7 additions and 5 deletions

View File

@@ -9,9 +9,11 @@ namespace OpenRa.Game
public int Kills;
public string PlayerName;
public Race Race;
public readonly int Index;
public Player( int palette, string playerName, Race race )
public Player( int index, int palette, string playerName, Race race )
{
this.Index = index;
this.Palette = palette;
this.PlayerName = playerName;
this.Race = race;