TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScriptInfo Struct Reference

#include <ObjectMgr.h>

Public Member Functions

std::string GetDebugInfo () const
 

Public Attributes

ScriptsType type
 
uint32 id
 
uint32 delay
 
ScriptCommands command
 
union {
   struct {
      uint32   nData [3]
 
      float   fData [4]
 
   }   Raw
 
   struct {
      uint32   ChatType
 
      uint32   Flags
 
      int32   TextID
 
   }   Talk
 
   struct {
      uint32   EmoteID
 
      uint32   Flags
 
   }   Emote
 
   struct {
      uint32   FieldID
 
      uint32   FieldValue
 
   }   FieldSet
 
   struct {
      uint32   Unused1
 
      uint32   TravelTime
 
      int32   Unused2
 
      float   DestX
 
      float   DestY
 
      float   DestZ
 
   }   MoveTo
 
   struct {
      uint32   FieldID
 
      uint32   FieldValue
 
   }   FlagToggle
 
   struct {
      uint32   MapID
 
      uint32   Flags
 
      int32   Unused1
 
      float   DestX
 
      float   DestY
 
      float   DestZ
 
      float   Orientation
 
   }   TeleportTo
 
   struct {
      uint32   QuestID
 
      uint32   Distance
 
   }   QuestExplored
 
   struct {
      uint32   CreatureEntry
 
      uint32   Flags
 
   }   KillCredit
 
   struct {
      uint32   GOGuid
 
      uint32   DespawnDelay
 
   }   RespawnGameobject
 
   struct {
      uint32   CreatureEntry
 
      uint32   DespawnDelay
 
      int32   Unused1
 
      float   PosX
 
      float   PosY
 
      float   PosZ
 
      float   Orientation
 
   }   TempSummonCreature
 
   struct {
      uint32   GOGuid
 
      uint32   ResetDelay
 
   }   ToggleDoor
 
   struct {
      uint32   SpellID
 
      uint32   Flags
 
   }   RemoveAura
 
   struct {
      uint32   SpellID
 
      uint32   Flags
 
      int32   CreatureEntry
 
      float   SearchRadius
 
   }   CastSpell
 
   struct {
      uint32   SoundID
 
      uint32   Flags
 
   }   PlaySound
 
   struct {
      uint32   ItemEntry
 
      uint32   Amount
 
   }   CreateItem
 
   struct {
      uint32   DespawnDelay
 
   }   DespawnSelf
 
   struct {
      uint32   PathID
 
      uint32   IsRepeatable
 
   }   LoadPath
 
   struct {
      uint32   CreatureEntry
 
      uint32   ScriptID
 
      uint32   ScriptType
 
   }   CallScript
 
   struct {
      uint32   Unused1
 
      uint32   Unused2
 
      int32   RemoveCorpse
 
   }   Kill
 
   struct {
      uint32   Flags
 
      uint32   Unused1
 
      int32   Unused2
 
      float   Unused3
 
      float   Unused4
 
      float   Unused5
 
      float   Orientation
 
   }   Orientation
 
   struct {
      uint32   EquipmentID
 
   }   Equip
 
   struct {
      uint32   ModelID
 
   }   Model
 
   struct {
      uint32   MovieID
 
   }   PlayMovie
 
   struct {
      uint32   AnimKitID
 
   }   PlayAnimKit
 
}; 
 

Member Function Documentation

std::string ScriptInfo::GetDebugInfo ( ) const
127 {
128  char sz[256];
129  sprintf(sz, "%s ('%s' script id: %u)", GetScriptCommandName(command).c_str(), GetScriptsTableNameByType(type).c_str(), id);
130  return std::string(sz);
131 }
std::string GetScriptCommandName(ScriptCommands command)
Definition: ObjectMgr.cpp:81
ScriptCommands command
Definition: ObjectMgr.h:187
ScriptsType type
Definition: ObjectMgr.h:184
std::string GetScriptsTableNameByType(ScriptsType type)
Definition: ObjectMgr.cpp:55
std::string sprintf(CStringRef format, ArgList args)
Definition: format.h:3096

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

union { ... }
uint32 ScriptInfo::Amount
uint32 ScriptInfo::AnimKitID
struct { ... } ScriptInfo::CallScript
struct { ... } ScriptInfo::CastSpell
uint32 ScriptInfo::ChatType
ScriptCommands ScriptInfo::command
struct { ... } ScriptInfo::CreateItem
uint32 ScriptInfo::CreatureEntry
int32 ScriptInfo::CreatureEntry
uint32 ScriptInfo::delay
uint32 ScriptInfo::DespawnDelay
struct { ... } ScriptInfo::DespawnSelf
float ScriptInfo::DestX
float ScriptInfo::DestY
float ScriptInfo::DestZ
uint32 ScriptInfo::Distance
struct { ... } ScriptInfo::Emote
uint32 ScriptInfo::EmoteID
struct { ... } ScriptInfo::Equip
uint32 ScriptInfo::EquipmentID
float ScriptInfo::fData[4]
uint32 ScriptInfo::FieldID
struct { ... } ScriptInfo::FieldSet
uint32 ScriptInfo::FieldValue
uint32 ScriptInfo::Flags
struct { ... } ScriptInfo::FlagToggle
uint32 ScriptInfo::GOGuid
uint32 ScriptInfo::id
uint32 ScriptInfo::IsRepeatable
uint32 ScriptInfo::ItemEntry
struct { ... } ScriptInfo::Kill
struct { ... } ScriptInfo::KillCredit
struct { ... } ScriptInfo::LoadPath
uint32 ScriptInfo::MapID
struct { ... } ScriptInfo::Model
uint32 ScriptInfo::ModelID
struct { ... } ScriptInfo::MoveTo
uint32 ScriptInfo::MovieID
uint32 ScriptInfo::nData[3]
float ScriptInfo::Orientation
struct { ... } ScriptInfo::Orientation
uint32 ScriptInfo::PathID
struct { ... } ScriptInfo::PlayAnimKit
struct { ... } ScriptInfo::PlayMovie
struct { ... } ScriptInfo::PlaySound
float ScriptInfo::PosX
float ScriptInfo::PosY
float ScriptInfo::PosZ
struct { ... } ScriptInfo::QuestExplored
uint32 ScriptInfo::QuestID
struct { ... } ScriptInfo::Raw
struct { ... } ScriptInfo::RemoveAura
int32 ScriptInfo::RemoveCorpse
uint32 ScriptInfo::ResetDelay
struct { ... } ScriptInfo::RespawnGameobject
uint32 ScriptInfo::ScriptID
uint32 ScriptInfo::ScriptType
float ScriptInfo::SearchRadius
uint32 ScriptInfo::SoundID
uint32 ScriptInfo::SpellID
struct { ... } ScriptInfo::Talk
struct { ... } ScriptInfo::TeleportTo
struct { ... } ScriptInfo::TempSummonCreature
int32 ScriptInfo::TextID
struct { ... } ScriptInfo::ToggleDoor
uint32 ScriptInfo::TravelTime
ScriptsType ScriptInfo::type
uint32 ScriptInfo::Unused1
int32 ScriptInfo::Unused1
int32 ScriptInfo::Unused2
uint32 ScriptInfo::Unused2
float ScriptInfo::Unused3
float ScriptInfo::Unused4
float ScriptInfo::Unused5

The documentation for this struct was generated from the following files: