[10988] Propertly note for not loaded script library version.

* Better support localization in case built-in version notes.
* Move script library version functions to ScriptMgr
This commit is contained in:
VladimirMangos 2011-01-09 05:37:45 +03:00
parent 6e241689e7
commit d2b3977fee
10 changed files with 43 additions and 19 deletions

View file

@ -341,10 +341,12 @@ class ScriptMgr
ScriptLoadResult LoadScriptLibrary(const char* libName);
void UnloadScriptLibrary();
bool IsScriptLibraryLoaded() const { return m_hScriptLib != NULL; }
CreatureAI* GetCreatureAI(Creature* pCreature);
InstanceData* CreateInstanceData(Map* pMap);
char const* GetScriptLibraryVersion() const;
bool OnGossipHello(Player* pPlayer, Creature* pCreature);
bool OnGossipHello(Player* pPlayer, GameObject* pGameObject);
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 sender, uint32 action, const char* code);