Exemplo n.º 1
0
        public MessengerManager(LibMessenger pluginInstance)
        {
            _pluginInstance = pluginInstance;
            _categoryCache = new WeakCache<int, Category>(LoadCategory);

            CoreManager.ServerCore.EventManager.StrongBind<CategoryHabboEventArgs>(_pluginInstance.Id + ":habbo_category_request:before", LoadHabboCategoriesFromDatabase);
            CoreManager.ServerCore.EventManager.StrongBind<CategoryBefriendablesEventArgs>(_pluginInstance.Id + ":category_friendship_request:before", LoadCategoryHabboBefriendablesFromDatabase);
        }
Exemplo n.º 2
0
 internal static void RegisterPluginInstance(ServerCore serverCore, LibMessenger pluginInstance)
 {
     _pluginInstanceLookup[serverCore] = pluginInstance;
 }