LKCamelot.io.IOClient.HandleGo C# (CSharp) Méthode

HandleGo() public méthode

public HandleGo ( string goloc ) : void
goloc string
Résultat void
        public void HandleGo(string goloc)
        {
            switch (goloc.ToLower())
            {
                case "village":
                    player.Loc = new Point2D(99, 100);
                    player.Map = "Village1";
                    break;
                case "rest":
                case "death":
                    player.Loc = new Point2D(18, 18);
                    player.Map = "Rest";
                    break;
                case "arnold":
                    player.Loc = new Point2D(8, 12);
                    player.Map = "Arnold";
                    break;
                case "aron":
                    player.Loc = new Point2D(98, 60);
                    player.Map = "Village1";
                    break;
                case "loen":
                    player.Loc = new Point2D(8, 12);
                    player.Map = "Loen";
                    break;
                case "employee":
                    player.Loc = new Point2D(128, 94);
                    player.Map = "Village1";
                    break;
                case "alias":
                    player.Loc = new Point2D(90, 176);
                    player.Map = "Village1";
                    break;

                case "beginner":
                    player.Loc = new Point2D(44, 48);
                    player.Map = "Beginner";
                    break;
                case "biggun":
                    player.Loc = new Point2D(167, 119);
                    player.Map = "Village1";
                    break;
                case "miro":
                    player.Loc = new Point2D(135, 58);
                    player.Map = "Village1";
                    break;
                case "golem":
                    player.Loc = new Point2D(15, 0);
                    player.Map = "Golem";
                    break;

                case "weakly":
                    player.Loc = new Point2D(66, 123);
                    player.Map = "Village1";
                    break;
                case "skel":
                    player.Loc = new Point2D(139, 137);
                    player.Map = "Village1";
                    break;
                case "level":
                    player.Loc = new Point2D(99, 130);
                    player.Map = "Village1";
                    break;
                case "item":
                    player.Loc = new Point2D(70, 68);
                    player.Map = "Village1";
                    break;
                case "venture":
                    player.Loc = new Point2D(31, 17);
                    player.Map = "Venture4";
                    break;
                case "treasureland":
                    player.Loc = new Point2D(25, 25);
                    player.Map = "TreasureLand";
                    break;

                case "vv1":
                    player.Loc = new Point2D(25, 25);
                    player.Map = "VV1";
                    break;
                case "vv2":
                    player.Loc = new Point2D(25, 25);
                    player.Map = "VV2";
                    break;
                case "vv3":
                    player.Loc = new Point2D(25, 25);
                    player.Map = "VV3";
                    break;
                case "vv4":
                    player.Loc = new Point2D(25, 25);
                    player.Map = "VV4";
                    break;
                case "vv5":
                    player.Loc = new Point2D(25, 25);
                    player.Map = "VV5";
                    break;

                case "miner":
                    player.Loc = new Point2D(15, 38);
                    player.Map = "Miner0";
                    break;

                case "soccerfield":
                    player.Loc = new Point2D(18, 18);
                    player.Map = "Soccer";
                    break;/*
                      case "eect":
                          player.Loc = new Point2D(18, 18);
                          player.Map = "eect.map";
                          break;*/
            }
        }