Core/Scripts: Add support for spawn specific C++ scripts
By Krudor.
This commit is contained in:
1 parent
dca200d6b6
commit
55914733a0
8 files changed
+46
-14
No files matched your search
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
// overwrite WorldObject function for proper name localization/*
|
||||
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/>
|
||||
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||
*
|
||||
@@ -1945,6 +1945,14 @@ void GameObject::EventInform(uint32 eventId, WorldObject* invoker /*= nullptr*/)
|
||||
bgMap->GetBG()->ProcessEvent(this, eventId, invoker);
|
||||
}
|
||||
|
||||
uint32 GameObject::GetScriptId() const
|
||||
{
|
||||
if (GameObjectData const* gameObjectData = GetGOData())
|
||||
return gameObjectData->ScriptId;
|
||||
|
||||
return GetGOInfo()->ScriptId;
|
||||
}
|
||||
|
||||
// overwrite WorldObject function for proper name localization
|
||||
std::string const & GameObject::GetNameForLocaleIdx(LocaleConstant loc_idx) const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user