Beispiel #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();
            }
        }
Beispiel #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;
 }
Beispiel #3
0
 /// <summary>
 /// Gets the talents track.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetTalentsTrack(GameClientMessageHandler handler)
 {
     handler.Talents();
 }
Beispiel #4
0
 /// <summary>
 /// Allows all ride.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AllowAllRide(GameClientMessageHandler handler)
 {
     handler.AllowAllRide();
 }
Beispiel #5
0
 /// <summary>
 /// Gets the room information.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomInformation(GameClientMessageHandler handler)
 {
     handler.ParseRoomDataInformation();
 }
Beispiel #6
0
 /// <summary>
 /// Gets the room filter.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomFilter(GameClientMessageHandler handler)
 {
     handler.GetRoomFilter();
 }
Beispiel #7
0
 /// <summary>
 /// Gets the room banned users.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomBannedUsers(GameClientMessageHandler handler)
 {
     handler.GetBannedUsers();
 }
Beispiel #8
0
 /// <summary>
 /// Gets the recommended rooms.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRecommendedRooms(GameClientMessageHandler handler)
 {
     handler.GetRecommendedRooms();
 }
Beispiel #9
0
 /// <summary>
 /// Gets the high rated rooms.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetHighRatedRooms(GameClientMessageHandler handler)
 {
     handler.GetHighRatedRooms();
 }
Beispiel #10
0
 /// <summary>
 /// Gets the helper tool.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetHelperTool(GameClientMessageHandler handler)
 {
     handler.OpenGuideTool();
 }
Beispiel #11
0
 /// <summary>
 /// Gets the guide detached.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetGuideDetached(GameClientMessageHandler handler)
 {
     handler.AnswerGuideRequest();
 }
Beispiel #12
0
 /// <summary>
 /// Gets the group forums.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetGroupForums(GameClientMessageHandler handler)
 {
     handler.GetGroupForums();
 }
Beispiel #13
0
 /// <summary>
 /// Gets the group badges.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetGroupBadges(GameClientMessageHandler handler)
 {
     handler.InitRoomGroupBadges();
 }
Beispiel #14
0
 /// <summary>
 /// Adds the favorite.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AddFavorite(GameClientMessageHandler handler)
 {
     handler.AddFavorite();
 }
Beispiel #15
0
 /// <summary>
 /// Gets the forum thread root.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetForumThreadRoot(GameClientMessageHandler handler)
 {
     handler.GetGroupForumThreadRoot();
 }
Beispiel #16
0
 /// <summary>
 /// Gets the pubs.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPubs(GameClientMessageHandler handler)
 {
     handler.GetPubs();
 }
Beispiel #17
0
 /// <summary>
 /// Adds the saddle.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AddSaddle(GameClientMessageHandler handler)
 {
     handler.AddSaddle();
 }
Beispiel #18
0
 internal static void GetHotelViewHallOfFame(GameClientMessageHandler handler)
 {
     handler.GetHotelViewHallOfFame();
 }
Beispiel #19
0
 /// <summary>
 /// Gets the relationships.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRelationships(GameClientMessageHandler handler)
 {
     handler.GetRelationships();
 }
Beispiel #20
0
 /// <summary>
 /// Gets the moodlight.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetMoodlight(GameClientMessageHandler handler)
 {
     handler.GetMoodlight();
 }
Beispiel #21
0
 /// <summary>
 /// Gets the room edit data.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomEditData(GameClientMessageHandler handler)
 {
     handler.GetRoomEditData();
 }
Beispiel #22
0
 /// <summary>
 /// Gets the music data.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetMusicData(GameClientMessageHandler handler)
 {
     handler.GetMusicData();
 }
Beispiel #23
0
 /// <summary>
 /// Gets the room information.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomInfo(GameClientMessageHandler handler)
 {
     handler.GetRoomInfo();
 }
Beispiel #24
0
 /// <summary>
 /// Adds the playlist item.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void AddPlaylistItem(GameClientMessageHandler handler)
 {
     handler.AddPlaylistItem();
 }
Beispiel #25
0
 /// <summary>
 /// Gets the rooms with friends.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetRoomsWithFriends(GameClientMessageHandler handler)
 {
     handler.GetRoomsWithFriends();
 }
Beispiel #26
0
 /// <summary>
 /// Gets the pets inventory.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPetsInventory(GameClientMessageHandler handler)
 {
     handler.GetPetsInventory();
 }
Beispiel #27
0
 /// <summary>
 /// Gets the subscription data.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetSubscriptionData(GameClientMessageHandler handler)
 {
     handler.GetSubscriptionData();
 }
Beispiel #28
0
 /// <summary>
 /// Gets the popular tags.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPopularTags(GameClientMessageHandler handler)
 {
     handler.GetPopularTags();
 }
Beispiel #29
0
 /// <summary>
 /// Gets the trainer panel.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetTrainerPanel(GameClientMessageHandler handler)
 {
     handler.GetTrainerPanel();
 }
Beispiel #30
0
 /// <summary>
 /// Gets the promotionable rooms.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal static void GetPromotionableRooms(GameClientMessageHandler handler)
 {
     handler.GetPromotionableRooms();
 }