예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
 public void SaveCurrentAvatar()
 {
     AvatarUtils.SaveAvatar(PlayerManager.GetCurrentPlayer().GetApiAvatar(), ConsoleUtils.AskInput("Enter avatar's name: ") ?? "Nameless", "");
 }
예제 #4
0
 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");
     });
 }