mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
feat(Core/Scripting): move all script objects to separated files (#17860)
* feat(Core/Scripts): move all script objects to separated files
* Apply 5bfeabde81
* try gcc build
* again
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "WeatherScript.h"
|
||||
#include "ElunaScript.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptMgrMacros.h"
|
||||
|
||||
@@ -42,3 +44,11 @@ void ScriptMgr::OnWeatherUpdate(Weather* weather, uint32 diff)
|
||||
tempScript->OnUpdate(weather, diff);
|
||||
}
|
||||
}
|
||||
|
||||
WeatherScript::WeatherScript(const char* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
ScriptRegistry<WeatherScript>::AddScript(this);
|
||||
}
|
||||
|
||||
template class AC_GAME_API ScriptRegistry<WeatherScript>;
|
||||
|
||||
Reference in New Issue
Block a user