//Not really the cleanest soloution since we acually create a new object just get the data.
        //Perhaps it should be static instead?
        public static List <string> getBotModeNames(GameType type)
        {
            TrainingBot b = getMatchingBot(type);

            List <string> modeNames = new List <string> ();

            foreach (Dictionary <string, string> d in b.botSettings())
            {
                modeNames.Add(d["Name"]);
            }

            return(modeNames);
        }
        public static void addBot(GameType type, int selectedBotMode = -1)
        {
            ClientPlayersHandler.addPlayer(true, false, StandardTrainingBotInfo);

            TrainingBot targetBot = getMatchingBot(type);

            selectedBotMode = selectedBotMode < 0 ? targetBot.defaultSettings() : selectedBotMode;
            Dictionary <string, string> newSettings = targetBot.botSettings() [selectedBotMode];

            botSettings.Add(new BotSetting(StandardTrainingBotInfo.username)
            {
                settings = newSettings
            });
        }