* Rename InstanceData to InstanceScript
* Rename *mgr to their new names in scripts project * Mass convert all the scripts (NEEDS THOROUGH TESTING, because it was done automatically) Please, report bugs on issue tracker. --HG-- branch : trunk rename : src/server/game/Instances/InstanceData.cpp => src/server/game/Instances/InstanceScript.cpp rename : src/server/game/Instances/InstanceData.h => src/server/game/Instances/InstanceScript.h
This commit is contained in:
@@ -64,7 +64,7 @@ class boss_archaedas : public CreatureScript
|
||||
{
|
||||
boss_archaedasAI(Creature *c) : ScriptedAI(c)
|
||||
{
|
||||
pInstance = me->GetInstanceData();
|
||||
pInstance = me->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 Tremor_Timer;
|
||||
@@ -74,7 +74,7 @@ class boss_archaedas : public CreatureScript
|
||||
|
||||
bool guardiansAwake;
|
||||
bool vaultWalkersAwake;
|
||||
ScriptedInstance* pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -226,7 +226,7 @@ class mob_archaedas_minions : public CreatureScript
|
||||
{
|
||||
mob_archaedas_minionsAI(Creature *c) : ScriptedAI(c)
|
||||
{
|
||||
pInstance = me->GetInstanceData();
|
||||
pInstance = me->GetInstanceScript();
|
||||
}
|
||||
|
||||
uint32 Arcing_Timer;
|
||||
@@ -234,7 +234,7 @@ class mob_archaedas_minions : public CreatureScript
|
||||
bool wakingUp;
|
||||
|
||||
bool amIAwake;
|
||||
ScriptedInstance* pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -322,10 +322,10 @@ class mob_stonekeepers : public CreatureScript
|
||||
{
|
||||
mob_stonekeepersAI(Creature *c) : ScriptedAI(c)
|
||||
{
|
||||
pInstance = (me->GetInstanceData());
|
||||
pInstance = (me->GetInstanceScript());
|
||||
}
|
||||
|
||||
ScriptedInstance* pInstance;
|
||||
InstanceScript* pInstance;
|
||||
|
||||
void Reset()
|
||||
{
|
||||
@@ -385,7 +385,7 @@ class go_altar_of_archaedas : public GameObjectScript
|
||||
|
||||
bool OnGossipHello(Player* pPlayer, GameObject* /*pGo*/)
|
||||
{
|
||||
ScriptedInstance* pInstance = pPlayer->GetInstanceData();
|
||||
InstanceScript* pInstance = pPlayer->GetInstanceScript();
|
||||
if (!pInstance)
|
||||
return false;
|
||||
|
||||
@@ -417,7 +417,7 @@ class go_altar_of_the_keepers : public GameObjectScript
|
||||
|
||||
bool OnGossipHello(Player* pPlayer, GameObject* /*pGo*/)
|
||||
{
|
||||
ScriptedInstance* pInstance = pPlayer->GetInstanceData();
|
||||
InstanceScript* pInstance = pPlayer->GetInstanceScript();
|
||||
if (!pInstance)
|
||||
return false;
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@ class instance_uldaman : public InstanceMapScript
|
||||
{
|
||||
}
|
||||
|
||||
struct instance_uldaman_InstanceMapScript : public ScriptedInstance
|
||||
struct instance_uldaman_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_uldaman_InstanceMapScript(Map* pMap) : ScriptedInstance(pMap)
|
||||
instance_uldaman_InstanceMapScript(Map* pMap) : InstanceScript(pMap)
|
||||
{
|
||||
Initialize();
|
||||
};
|
||||
@@ -290,7 +290,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
} // end GetData64
|
||||
};
|
||||
|
||||
InstanceData* OnGetInstanceData(InstanceMap* pMap)
|
||||
InstanceScript* OnGetInstanceData(InstanceMap* pMap)
|
||||
{
|
||||
return new instance_uldaman_InstanceMapScript(pMap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user