[svn] * Allow WorldObjects to keep the grid active, and prevent it from being unloaded. This can be done through calling WorldObject::setActive(bool) from the scripting library. Note that entire instances are still unloaded if no player is present on that map to save resources. This behavior can be changed if the need arises.
--HG-- branch : trunk
This commit is contained in:
@@ -122,6 +122,8 @@ class Pet : public Creature
|
||||
|
||||
void AddToWorld();
|
||||
void RemoveFromWorld();
|
||||
// always active
|
||||
void setActive() {}
|
||||
|
||||
PetType getPetType() const { return m_petType; }
|
||||
void setPetType(PetType type) { m_petType = type; }
|
||||
|
||||
Reference in New Issue
Block a user