public void ChooseTool(object sender, object userInfo) { SelectedMap = userInfo as Map; _sandGame.GameMap = SelectedMap; Console.WriteLine(SelectedMap); foreach(KeyValuePair<Map, Button> pair in _mapButtons) { pair.Value.TeamColor = (pair.Key != SelectedMap) ? new Color(0.2f, 0.2f, 0.2f) : Color.White; } }
public MapManager(Game game) { Game = game; TutorialMap = new Map(game, "tutorial"); Maps = new Dictionary<string, Map> { { "Desert", new Map(game, "desert") }, { "Lab", new Map(game, "lab") }, { "Outpost", new Map(game, "outpost") } }; }