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:
parent
fe9bda1bc4
commit
eb1ecc38a5
717 changed files with 5832 additions and 3579 deletions
|
|
@ -15,6 +15,7 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "TransportScript.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "Transport.h"
|
||||
|
||||
|
|
@ -68,3 +69,11 @@ void ScriptMgr::OnRelocate(Transport* transport, uint32 waypointId, uint32 mapId
|
|||
tempScript->OnRelocate(transport, waypointId, mapId, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
TransportScript::TransportScript(const char* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
ScriptRegistry<TransportScript>::AddScript(this);
|
||||
}
|
||||
|
||||
template class AC_GAME_API ScriptRegistry<TransportScript>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue