feat(Core/Maps): Remove worldobject container switch functionality (#22586)
This commit is contained in:
parent
956f4b0751
commit
a77bd19104
9 changed files with 6 additions and 154 deletions
|
|
@ -1072,25 +1072,6 @@ void WorldObject::Update(uint32 diff)
|
|||
sScriptMgr->OnWorldObjectUpdate(this, diff);
|
||||
}
|
||||
|
||||
void WorldObject::SetWorldObject(bool on)
|
||||
{
|
||||
if (!IsInWorld())
|
||||
return;
|
||||
|
||||
GetMap()->AddObjectToSwitchList(this, on);
|
||||
}
|
||||
|
||||
bool WorldObject::IsWorldObject() const
|
||||
{
|
||||
if (m_isWorldObject)
|
||||
return true;
|
||||
|
||||
if (ToCreature() && ToCreature()->m_isTempWorldObject)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void WorldObject::setActive(bool on)
|
||||
{
|
||||
if (m_isActive == on)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue