コード例 #1
0
ファイル: Program.cs プロジェクト: chienhao10/VoliBotGUI
        public static BaseRegion GetRegion(String requestedRegion)
        {
            requestedRegion = requestedRegion.ToUpper();
            BaseRegion toReturn;

            switch (requestedRegion)
            {
            case "BR":
                toReturn = new BaseRegions.BR();
                return(toReturn);

            case "EUW":
                toReturn = new BaseRegions.EUW();
                return(toReturn);

            case "EUNE":
                toReturn = new BaseRegions.EUNE();
                return(toReturn);

            case "KR":
                toReturn = new BaseRegions.KR();
                return(toReturn);

            case "LAN":
                toReturn = new BaseRegions.LAN();
                return(toReturn);

            case "LAS":
                toReturn = new BaseRegions.LAS();
                return(toReturn);

            case "NA":
                toReturn = new BaseRegions.NA();
                return(toReturn);

            case "OCE":
                toReturn = new BaseRegions.OCE();
                return(toReturn);

            case "RU":
                toReturn = new BaseRegions.RU();
                return(toReturn);

            case "TR":
                toReturn = new BaseRegions.TR();
                return(toReturn);

            default:
                return(null);
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: lolibot/LolibotGui-Code
 public static BaseRegion GetRegion(String requestedRegion)
 {
     requestedRegion = requestedRegion.ToUpper();
     BaseRegion toReturn;
     switch (requestedRegion)
     {
         case "BR":
             toReturn = new BaseRegions.BR();
             return toReturn;
         case "EUW":
             toReturn = new BaseRegions.EUW();
             return toReturn;
         case "EUNE":
             toReturn = new BaseRegions.EUNE();
             return toReturn;
         case "KR":
             toReturn = new BaseRegions.KR();
             return toReturn;
         case "LAN":
             toReturn = new BaseRegions.LAN();
             return toReturn;
         case "LAS":
             toReturn = new BaseRegions.LAS();
             return toReturn;
         case "NA":
             toReturn = new BaseRegions.NA();
             return toReturn;
         case "OCE":
             toReturn = new BaseRegions.OCE();
             return toReturn;
         case "RU":
             toReturn = new BaseRegions.RU();
             return toReturn;
         case "TR":
             toReturn = new BaseRegions.TR();
             return toReturn;
         default:
             return null;
     }
 }