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