public Player(PlayerSetup playerSetup) { Name = playerSetup.Name; LoadAI(playerSetup.AIFileName); Colour = playerSetup.Colour; Units = new List<Unit>(); }
public void LoadPlayer(PlayerSetup setup, int id) { Player player = new Player(setup); Data.PlayerDict.Add(id, player); }