mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
chore(Core/modules): necessary core changes for mod-eluna rename (#22962)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "ElunaScript.h"
|
||||
#include "ALEScript.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
ElunaScript::ElunaScript(const char* name) : ScriptObject(name)
|
||||
ALEScript::ALEScript(const char* name) : ScriptObject(name)
|
||||
{
|
||||
ScriptRegistry<ElunaScript>::AddScript(this);
|
||||
ScriptRegistry<ALEScript>::AddScript(this);
|
||||
}
|
||||
|
||||
template class AC_GAME_API ScriptRegistry<ElunaScript>;
|
||||
template class AC_GAME_API ScriptRegistry<ALEScript>;
|
||||
@@ -15,15 +15,15 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef SCRIPT_OBJECT_ELUNA_SCRIPT_H_
|
||||
#define SCRIPT_OBJECT_ELUNA_SCRIPT_H_
|
||||
#ifndef SCRIPT_OBJECT_ALE_SCRIPT_H_
|
||||
#define SCRIPT_OBJECT_ALE_SCRIPT_H_
|
||||
|
||||
#include "ScriptObject.h"
|
||||
|
||||
class ElunaScript : public ScriptObject
|
||||
class ALEScript : public ScriptObject
|
||||
{
|
||||
protected:
|
||||
ElunaScript(const char* name);
|
||||
ALEScript(const char* name);
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "CreatureScript.h"
|
||||
#include "DatabaseScript.h"
|
||||
#include "DynamicObjectScript.h"
|
||||
#include "ElunaScript.h"
|
||||
#include "ALEScript.h"
|
||||
#include "FormulaScript.h"
|
||||
#include "GameEventScript.h"
|
||||
#include "GameObjectScript.h"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "AreaTriggerScript.h"
|
||||
#include "ElunaScript.h"
|
||||
#include "ALEScript.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptMgrMacros.h"
|
||||
@@ -26,7 +26,7 @@ bool ScriptMgr::OnAreaTrigger(Player* player, AreaTrigger const* trigger)
|
||||
ASSERT(player);
|
||||
ASSERT(trigger);
|
||||
|
||||
auto ret = IsValidBoolScript<ElunaScript>([&](ElunaScript* script)
|
||||
auto ret = IsValidBoolScript<ALEScript>([&](ALEScript* script)
|
||||
{
|
||||
return script->CanAreaTrigger(player, trigger);
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "WeatherScript.h"
|
||||
#include "ElunaScript.h"
|
||||
#include "ALEScript.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptMgrMacros.h"
|
||||
|
||||
@@ -24,7 +24,7 @@ void ScriptMgr::OnWeatherChange(Weather* weather, WeatherState state, float grad
|
||||
{
|
||||
ASSERT(weather);
|
||||
|
||||
ExecuteScript<ElunaScript>([&](ElunaScript* script)
|
||||
ExecuteScript<ALEScript>([&](ALEScript* script)
|
||||
{
|
||||
script->OnWeatherChange(weather, state, grade);
|
||||
});
|
||||
|
||||
@@ -127,7 +127,7 @@ void ScriptMgr::Unload()
|
||||
SCR_CLEAR<CreatureScript>();
|
||||
SCR_CLEAR<DatabaseScript>();
|
||||
SCR_CLEAR<DynamicObjectScript>();
|
||||
SCR_CLEAR<ElunaScript>();
|
||||
SCR_CLEAR<ALEScript>();
|
||||
SCR_CLEAR<FormulaScript>();
|
||||
SCR_CLEAR<GameEventScript>();
|
||||
SCR_CLEAR<GameObjectScript>();
|
||||
|
||||
Reference in New Issue
Block a user