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:
Winfidonarleyan 2023-12-03 03:13:20 +07:00 committed by GitHub
parent fe9bda1bc4
commit eb1ecc38a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
717 changed files with 5832 additions and 3579 deletions

View file

@ -15,6 +15,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "WorldScript.h"
#include "ScriptMgr.h"
#include "ScriptMgrMacros.h"
@ -121,3 +122,11 @@ void ScriptMgr::OnAfterUnloadAllMaps()
script->OnAfterUnloadAllMaps();
});
}
WorldScript::WorldScript(const char* name) :
ScriptObject(name)
{
ScriptRegistry<WorldScript>::AddScript(this);
}
template class AC_GAME_API ScriptRegistry<WorldScript>;