mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +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:
@@ -41,7 +41,7 @@
|
||||
|
||||
#include "UpdateFields.h"
|
||||
|
||||
class ElunaEventProcessor;
|
||||
class ALEEventProcessor;
|
||||
|
||||
enum TempSummonType
|
||||
{
|
||||
@@ -727,7 +727,7 @@ public:
|
||||
ObjectVisibilityContainer const& GetObjectVisibilityContainer() const { return _objectVisibilityContainer; }
|
||||
|
||||
// Event handler
|
||||
ElunaEventProcessor* elunaEvents;
|
||||
ALEEventProcessor* ALEEvents;
|
||||
EventProcessor m_Events;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -2118,7 +2118,7 @@ void InstanceMap::CreateInstanceScript(bool load, std::string data, uint32 compl
|
||||
if (instance_data)
|
||||
isOtherAI = true;
|
||||
|
||||
// if Eluna AI was fetched succesfully we should not call CreateInstanceData nor set the unused scriptID
|
||||
// if ALE AI was fetched succesfully we should not call CreateInstanceData nor set the unused scriptID
|
||||
if (!isOtherAI)
|
||||
{
|
||||
InstanceTemplate const* mInstance = sObjectMgr->GetInstanceTemplate(GetId());
|
||||
@@ -2132,7 +2132,7 @@ void InstanceMap::CreateInstanceScript(bool load, std::string data, uint32 compl
|
||||
if (!instance_data)
|
||||
return;
|
||||
|
||||
// use mangos behavior if we are dealing with Eluna AI
|
||||
// use mangos behavior if we are dealing with ALE AI
|
||||
// initialize should then be called only if load is false
|
||||
if (!isOtherAI || !load)
|
||||
{
|
||||
|
||||
@@ -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