| | 1 | | using System; |
| | 2 | | using System.Collections; |
| | 3 | | using DCL; |
| | 4 | | using DCL.Interface; |
| | 5 | | using UnityEngine; |
| | 6 | |
|
| | 7 | | public class TeleportController : ITeleportController |
| | 8 | | { |
| | 9 | |
|
| | 10 | | public void Teleport(int x, int y) |
| | 11 | | { |
| 0 | 12 | | WebInterface.GoTo(x, y); |
| 0 | 13 | | } |
| | 14 | |
|
| | 15 | | public void JumpIn(int coordsX, int coordsY, string serverName, string layerName) |
| | 16 | | { |
| 0 | 17 | | WebInterface.JumpIn(coordsX, coordsY, serverName, layerName); |
| 0 | 18 | | } |
| | 19 | |
|
| | 20 | | public void GoToCrowd() |
| | 21 | | { |
| 0 | 22 | | WebInterface.GoToCrowd(); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | public void JumpInWorld(string worldName) |
| | 26 | | { |
| 0 | 27 | | WebInterface.SendChatMessage(new ChatMessage |
| | 28 | | { |
| | 29 | | messageType = ChatMessage.Type.NONE, |
| | 30 | | recipient = string.Empty, |
| | 31 | | body = $"/changerealm {worldName}" |
| | 32 | | }); |
| 0 | 33 | | } |
| | 34 | |
|
| | 35 | | public void GoToMagic() |
| | 36 | | { |
| 0 | 37 | | WebInterface.GoToMagic(); |
| 0 | 38 | | } |
| | 39 | |
|
| | 40 | | public void Dispose() |
| | 41 | | { |
| 425 | 42 | | } |
| | 43 | |
|
| | 44 | | public void Initialize() |
| | 45 | | { |
| | 46 | |
|
| 425 | 47 | | } |
| | 48 | |
|
| | 49 | | } |
| | 50 | |
|