mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[7295] Make more static world data accessable for scripts use.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1fa4ecf482
commit
0be9e35b7b
5 changed files with 22 additions and 4 deletions
|
|
@ -7364,3 +7364,13 @@ ObjectMgr::ScriptNameMap & GetScriptNames()
|
|||
{
|
||||
return objmgr.GetScriptNames();
|
||||
}
|
||||
|
||||
CreatureInfo const* GetCreatureTemplateStore(uint32 entry)
|
||||
{
|
||||
return sCreatureStorage.LookupEntry<CreatureInfo>(entry);
|
||||
}
|
||||
|
||||
Quest const* GetQuestTemplateStore(uint32 entry)
|
||||
{
|
||||
return objmgr.GetQuestTemplate(entry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -881,5 +881,7 @@ MANGOS_DLL_SPEC bool LoadMangosStrings(DatabaseType& db, char const* table,int32
|
|||
MANGOS_DLL_SPEC uint32 GetAreaTriggerScriptId(uint32 trigger_id);
|
||||
MANGOS_DLL_SPEC uint32 GetScriptId(const char *name);
|
||||
MANGOS_DLL_SPEC ObjectMgr::ScriptNameMap& GetScriptNames();
|
||||
MANGOS_DLL_SPEC CreatureInfo const* GetCreatureTemplateStore(uint32 entry);
|
||||
MANGOS_DLL_SPEC Quest const* GetQuestTemplateStore(uint32 entry);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue