private void OnTeleportPressed()
    {
        switch (teleportData.destination)
        {
        case TELEPORT_COMMAND_CROWD:
            WebInterface.GoToCrowd();
            break;

        case TELEPORT_COMMAND_MAGIC:
            WebInterface.GoToMagic();
            break;

        default:
            int      x, y;
            string[] coordSplit = teleportData.destination.Split(',');
            if (coordSplit.Length == 2 && int.TryParse(coordSplit[0], out x) && int.TryParse(coordSplit[1], out y))
            {
                WebInterface.GoTo(x, y);
            }
            break;
        }
    }
Esempio n. 2
0
 void OnGoToCrowd()
 {
     WebInterface.GoToCrowd();
 }