[svn] Added a function for WorldObjects to summon GameObjects. Original patch provided by streetrat. Please refer to the patch thread for usage instructions.

--HG--
branch : trunk
This commit is contained in:
w12x
2008-10-17 18:13:04 -05:00
parent 0bdf12f3dd
commit 16dcd37279
3 changed files with 26 additions and 1 deletions
+2 -1
View File
@@ -91,6 +91,7 @@ class Player;
class Map;
class UpdateMask;
class InstanceData;
class GameObject;
typedef HM_NAMESPACE::hash_map<Player*, UpdateData> UpdateDataMapType;
@@ -445,7 +446,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object
Map * GetMap() const;
Map const* GetBaseMap() const;
Creature* SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime);
GameObject* SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime);
protected:
explicit WorldObject();
std::string m_name;