Exemple #1
0
        public static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
        {
            Console.ForegroundColor = ConsoleColor.DarkCyan;

            if (Incoming.ContainsKey(message.Id))
            {
                if (AzureEmulator.DebugMode)
                {
                    Console.WriteLine();
                    Console.Write("INCOMING ");
                    Console.ForegroundColor = ConsoleColor.DarkGreen;
                    Console.Write("HANDLED ");
                    Console.ForegroundColor = ConsoleColor.DarkGray;
                    Console.Write(message.Id + Environment.NewLine + message);
                    if (message.Length > 0)
                        Console.WriteLine();
                    Console.WriteLine();
                }

                StaticRequestHandler staticRequestHandler = Incoming[message.Id];
                staticRequestHandler(handler);
            }
            else if (AzureEmulator.DebugMode)
            {
                Console.WriteLine();
                Console.Write("INCOMING ");
                Console.ForegroundColor = ConsoleColor.DarkRed;
                Console.Write("REFUSED ");
                Console.ForegroundColor = ConsoleColor.DarkGray;
                Console.Write(message.Id + Environment.NewLine + message);
                if (message.Length > 0)
                    Console.WriteLine();
                Console.WriteLine();
            }
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeleUserData"/> class.
 /// </summary>
 /// <param name="handler">The p handler.</param>
 /// <param name="userRefference">The p user refference.</param>
 /// <param name="roomId">The room identifier.</param>
 /// <param name="teleId">The tele identifier.</param>
 internal TeleUserData(GameClientMessageHandler handler, Habbo userRefference, uint roomId, uint teleId)
 {
     _mHandler = handler;
     _userRefference = userRefference;
     _roomId = roomId;
     _teleId = teleId;
 }
Exemple #3
0
 /// <summary>
 /// Gets the talents track.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetTalentsTrack(GameClientMessageHandler handler)
 {
     handler.Talents();
 }
Exemple #4
0
 /// <summary>
 /// Allows all ride.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AllowAllRide(GameClientMessageHandler handler)
 {
     handler.AllowAllRide();
 }
Exemple #5
0
 /// <summary>
 /// Gets the room information.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomInformation(GameClientMessageHandler handler)
 {
     handler.ParseRoomDataInformation();
 }
Exemple #6
0
 /// <summary>
 /// Gets the room filter.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomFilter(GameClientMessageHandler handler)
 {
     handler.GetRoomFilter();
 }
Exemple #7
0
 /// <summary>
 /// Gets the room banned users.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomBannedUsers(GameClientMessageHandler handler)
 {
     handler.GetBannedUsers();
 }
Exemple #8
0
 /// <summary>
 /// Gets the recommended rooms.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRecommendedRooms(GameClientMessageHandler handler)
 {
     handler.GetRecommendedRooms();
 }
Exemple #9
0
 /// <summary>
 /// Gets the high rated rooms.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetHighRatedRooms(GameClientMessageHandler handler)
 {
     handler.GetHighRatedRooms();
 }
Exemple #10
0
 /// <summary>
 /// Gets the helper tool.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetHelperTool(GameClientMessageHandler handler)
 {
     handler.OpenGuideTool();
 }
Exemple #11
0
 /// <summary>
 /// Gets the guide detached.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetGuideDetached(GameClientMessageHandler handler)
 {
     handler.AnswerGuideRequest();
 }
Exemple #12
0
 /// <summary>
 /// Gets the group forums.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetGroupForums(GameClientMessageHandler handler)
 {
     handler.GetGroupForums();
 }
Exemple #13
0
 /// <summary>
 /// Gets the group badges.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetGroupBadges(GameClientMessageHandler handler)
 {
     handler.InitRoomGroupBadges();
 }
Exemple #14
0
 /// <summary>
 /// Adds the favorite.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AddFavorite(GameClientMessageHandler handler)
 {
     handler.AddFavorite();
 }
Exemple #15
0
 /// <summary>
 /// Gets the forum thread root.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetForumThreadRoot(GameClientMessageHandler handler)
 {
     handler.GetGroupForumThreadRoot();
 }
Exemple #16
0
 /// <summary>
 /// Gets the pubs.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPubs(GameClientMessageHandler handler)
 {
     handler.GetPubs();
 }
Exemple #17
0
 /// <summary>
 /// Adds the saddle.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AddSaddle(GameClientMessageHandler handler)
 {
     handler.AddSaddle();
 }
Exemple #18
0
 internal static void GetHotelViewHallOfFame(GameClientMessageHandler handler)
 {
     handler.GetHotelViewHallOfFame();
 }
Exemple #19
0
 /// <summary>
 /// Gets the relationships.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRelationships(GameClientMessageHandler handler)
 {
     handler.GetRelationships();
 }
Exemple #20
0
 /// <summary>
 /// Gets the moodlight.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetMoodlight(GameClientMessageHandler handler)
 {
     handler.GetMoodlight();
 }
Exemple #21
0
 /// <summary>
 /// Gets the room edit data.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomEditData(GameClientMessageHandler handler)
 {
     handler.GetRoomEditData();
 }
Exemple #22
0
 /// <summary>
 /// Gets the music data.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetMusicData(GameClientMessageHandler handler)
 {
     handler.GetMusicData();
 }
Exemple #23
0
 /// <summary>
 /// Gets the room information.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomInfo(GameClientMessageHandler handler)
 {
     handler.GetRoomInfo();
 }
Exemple #24
0
 /// <summary>
 /// Adds the playlist item.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AddPlaylistItem(GameClientMessageHandler handler)
 {
     handler.AddPlaylistItem();
 }
Exemple #25
0
 /// <summary>
 /// Gets the rooms with friends.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomsWithFriends(GameClientMessageHandler handler)
 {
     handler.GetRoomsWithFriends();
 }
Exemple #26
0
 /// <summary>
 /// Gets the pets inventory.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPetsInventory(GameClientMessageHandler handler)
 {
     handler.GetPetsInventory();
 }
Exemple #27
0
 /// <summary>
 /// Gets the subscription data.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetSubscriptionData(GameClientMessageHandler handler)
 {
     handler.GetSubscriptionData();
 }
Exemple #28
0
 /// <summary>
 /// Gets the popular tags.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPopularTags(GameClientMessageHandler handler)
 {
     handler.GetPopularTags();
 }
Exemple #29
0
 /// <summary>
 /// Gets the trainer panel.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetTrainerPanel(GameClientMessageHandler handler)
 {
     handler.GetTrainerPanel();
 }
Exemple #30
0
 /// <summary>
 /// Gets the promotionable rooms.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPromotionableRooms(GameClientMessageHandler handler)
 {
     handler.GetPromotionableRooms();
 }