public static void GametypeHandler(ComboBox combo, SRB2Version version)
        {
            combo.BeginUpdate();
            combo.Items.Clear();

            if (version == SRB2Version.v21x)
            {
                combo.Items.AddRange(new object[]
                {
                    "Co-op",
                    "Competition",
                    "Race",
                    "Match",
                    "Team Match",
                    "Tag",
                    "Hide and Seek",
                    "Capture the Flag"
                });
            }
            else
            {
                combo.Items.AddRange(new object[]
                {
                    "Co-op",
                    "Match",
                    "Race",
                    "Tag",
                    "Capture the Flag"
                });
            }

            combo.SelectedIndex = 0;
            combo.EndUpdate();
        }
        public static string WarpHandler(string mapNum, string gametype, SRB2Version gameVersion)
        {
            StringBuilder result = new StringBuilder("-warp " + mapNum + " -gametype ");

            // TODO: Replace this kind of stuff throughout the project with a dictionary maybe?
            switch (gametype)
            {
            case "Co-op":
                result.Append("0");
                break;

            case "Competition":
                result.Append(gameVersion >= SRB2Version.v21x ? "1" : "0");
                break;

            case "Race":
                result.Append("2");
                break;

            case "Match":
                result.Append(gameVersion >= SRB2Version.v21x ? "3" : "1");
                break;

            case "Team Match":
                if (gameVersion >= SRB2Version.v21x)
                {
                    result.Append("4");
                }
                break;

            case "Tag":
                result.Append(gameVersion >= SRB2Version.v21x ? "5" : "3");
                break;

            case "Hide and Seek":
                if (gameVersion >= SRB2Version.v21x)
                {
                    result.Append("6");
                }
                break;

            case "Capture the Flag":
                result.Append(gameVersion >= SRB2Version.v21x ? "7" : "4");
                break;

            default:
                result.Append("0");
                break;
            }

            return(result.ToString());
        }