public void TeleportTo() { Console.Clear(); Console.WriteLine(string.Join(", ", (from p in PlayerManager.GetAllPlayers() select p.GetAPIUser().displayName).ToArray <string>())); VRC.Player player = PlayerUtils.FindPlayer(ConsoleUtils.AskInput("Teleport to: ")); PlayerUtils.TeleportTo(player); Console.WriteLine("Teleporting to: {0}", player.GetAPIUser().displayName); }
public void SaveAvatarId() { ApiAvatar apiAvatar = new ApiAvatar(); apiAvatar.id = ConsoleUtils.AskInput("Enter avatar ID: "); apiAvatar.Fetch(delegate(ApiContainer success) { AvatarUtils.SaveAvatar(success.Model as ApiAvatar, ConsoleUtils.AskInput("Enter avatar's name: "), ""); }, delegate(ApiContainer error) { Console.WriteLine("Error saving avatar: {0}", error.Error); }, null, false); }
public void SaveCurrentAvatar() { AvatarUtils.SaveAvatar(PlayerManager.GetCurrentPlayer().GetApiAvatar(), ConsoleUtils.AskInput("Enter avatar's name: ") ?? "Nameless", ""); }
public void SendMessage() { ApiNotification.SendNotification(this.selectedUser.id, ApiNotification.NotificationType.All, ConsoleUtils.AskInput("Enter message: "), null, delegate(ApiNotification notification) { Console.WriteLine("Message sent!"); }, delegate(string error) { Console.WriteLine("Error sending message"); }); }