feat(Core/Scripts): Add gameobject_summon_groups with quaternion rotation support (#24708)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define AZEROTHCORE_TEMPSUMMON_H
|
||||
|
||||
#include "Creature.h"
|
||||
#include "G3D/Quat.h"
|
||||
|
||||
enum SummonerType
|
||||
{
|
||||
@@ -36,6 +37,15 @@ struct TempSummonData
|
||||
uint32 time; ///< Despawn time, usable only with certain temp summon types
|
||||
};
|
||||
|
||||
/// Stores data for temp gameobject summons
|
||||
struct GameObjectSummonData
|
||||
{
|
||||
uint32 entry;
|
||||
Position pos;
|
||||
G3D::Quat rot;
|
||||
uint32 respawnTime; ///< Duration in seconds; passed to SummonGameObject's respawnTime parameter
|
||||
};
|
||||
|
||||
class TempSummon : public Creature
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user