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(); } }
/// <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; }
/// <summary> /// Gets the talents track. /// </summary> /// <param name="handler">The handler.</param> internal static void GetTalentsTrack(GameClientMessageHandler handler) { handler.Talents(); }
/// <summary> /// Allows all ride. /// </summary> /// <param name="handler">The handler.</param> internal static void AllowAllRide(GameClientMessageHandler handler) { handler.AllowAllRide(); }
/// <summary> /// Gets the room information. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRoomInformation(GameClientMessageHandler handler) { handler.ParseRoomDataInformation(); }
/// <summary> /// Gets the room filter. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRoomFilter(GameClientMessageHandler handler) { handler.GetRoomFilter(); }
/// <summary> /// Gets the room banned users. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRoomBannedUsers(GameClientMessageHandler handler) { handler.GetBannedUsers(); }
/// <summary> /// Gets the recommended rooms. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRecommendedRooms(GameClientMessageHandler handler) { handler.GetRecommendedRooms(); }
/// <summary> /// Gets the high rated rooms. /// </summary> /// <param name="handler">The handler.</param> internal static void GetHighRatedRooms(GameClientMessageHandler handler) { handler.GetHighRatedRooms(); }
/// <summary> /// Gets the helper tool. /// </summary> /// <param name="handler">The handler.</param> internal static void GetHelperTool(GameClientMessageHandler handler) { handler.OpenGuideTool(); }
/// <summary> /// Gets the guide detached. /// </summary> /// <param name="handler">The handler.</param> internal static void GetGuideDetached(GameClientMessageHandler handler) { handler.AnswerGuideRequest(); }
/// <summary> /// Gets the group forums. /// </summary> /// <param name="handler">The handler.</param> internal static void GetGroupForums(GameClientMessageHandler handler) { handler.GetGroupForums(); }
/// <summary> /// Gets the group badges. /// </summary> /// <param name="handler">The handler.</param> internal static void GetGroupBadges(GameClientMessageHandler handler) { handler.InitRoomGroupBadges(); }
/// <summary> /// Adds the favorite. /// </summary> /// <param name="handler">The handler.</param> internal static void AddFavorite(GameClientMessageHandler handler) { handler.AddFavorite(); }
/// <summary> /// Gets the forum thread root. /// </summary> /// <param name="handler">The handler.</param> internal static void GetForumThreadRoot(GameClientMessageHandler handler) { handler.GetGroupForumThreadRoot(); }
/// <summary> /// Gets the pubs. /// </summary> /// <param name="handler">The handler.</param> internal static void GetPubs(GameClientMessageHandler handler) { handler.GetPubs(); }
/// <summary> /// Adds the saddle. /// </summary> /// <param name="handler">The handler.</param> internal static void AddSaddle(GameClientMessageHandler handler) { handler.AddSaddle(); }
internal static void GetHotelViewHallOfFame(GameClientMessageHandler handler) { handler.GetHotelViewHallOfFame(); }
/// <summary> /// Gets the relationships. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRelationships(GameClientMessageHandler handler) { handler.GetRelationships(); }
/// <summary> /// Gets the moodlight. /// </summary> /// <param name="handler">The handler.</param> internal static void GetMoodlight(GameClientMessageHandler handler) { handler.GetMoodlight(); }
/// <summary> /// Gets the room edit data. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRoomEditData(GameClientMessageHandler handler) { handler.GetRoomEditData(); }
/// <summary> /// Gets the music data. /// </summary> /// <param name="handler">The handler.</param> internal static void GetMusicData(GameClientMessageHandler handler) { handler.GetMusicData(); }
/// <summary> /// Gets the room information. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRoomInfo(GameClientMessageHandler handler) { handler.GetRoomInfo(); }
/// <summary> /// Adds the playlist item. /// </summary> /// <param name="handler">The handler.</param> internal static void AddPlaylistItem(GameClientMessageHandler handler) { handler.AddPlaylistItem(); }
/// <summary> /// Gets the rooms with friends. /// </summary> /// <param name="handler">The handler.</param> internal static void GetRoomsWithFriends(GameClientMessageHandler handler) { handler.GetRoomsWithFriends(); }
/// <summary> /// Gets the pets inventory. /// </summary> /// <param name="handler">The handler.</param> internal static void GetPetsInventory(GameClientMessageHandler handler) { handler.GetPetsInventory(); }
/// <summary> /// Gets the subscription data. /// </summary> /// <param name="handler">The handler.</param> internal static void GetSubscriptionData(GameClientMessageHandler handler) { handler.GetSubscriptionData(); }
/// <summary> /// Gets the popular tags. /// </summary> /// <param name="handler">The handler.</param> internal static void GetPopularTags(GameClientMessageHandler handler) { handler.GetPopularTags(); }
/// <summary> /// Gets the trainer panel. /// </summary> /// <param name="handler">The handler.</param> internal static void GetTrainerPanel(GameClientMessageHandler handler) { handler.GetTrainerPanel(); }
/// <summary> /// Gets the promotionable rooms. /// </summary> /// <param name="handler">The handler.</param> internal static void GetPromotionableRooms(GameClientMessageHandler handler) { handler.GetPromotionableRooms(); }