AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SmartScriptHolder Struct Reference

#include "SmartScriptMgr.h"

Public Member Functions

 SmartScriptHolder ()
 
uint32 GetScriptType () const
 
uint32 GetEventType () const
 
uint32 GetActionType () const
 
uint32 GetTargetType () const
 
bool operator< (SmartScriptHolder const &other) const
 

Public Attributes

int32 entryOrGuid
 
SmartScriptType source_type
 
uint32 event_id
 
uint32 link
 
SmartEvent event
 
SmartAction action
 
SmartTarget target
 
uint32 timer
 
uint32 priority
 
bool active
 
bool runOnce
 
bool enableTimed
 

Static Public Attributes

static constexpr uint32 DEFAULT_PRIORITY = std::numeric_limits<uint32>::max()
 

Detailed Description

Constructor & Destructor Documentation

◆ SmartScriptHolder()

SmartScriptHolder::SmartScriptHolder ( )
inline
1936 , event_id(0), link(0), event(), action(), target(), timer(0), priority(DEFAULT_PRIORITY), active(false), runOnce(false)
1937 , enableTimed(false) {}
@ SMART_SCRIPT_TYPE_CREATURE
Definition: SmartScriptMgr.h:1734
static constexpr uint32 DEFAULT_PRIORITY
Definition: SmartScriptMgr.h:1966
bool runOnce
Definition: SmartScriptMgr.h:1957
bool active
Definition: SmartScriptMgr.h:1956
uint32 link
Definition: SmartScriptMgr.h:1942
bool enableTimed
Definition: SmartScriptMgr.h:1958
uint32 event_id
Definition: SmartScriptMgr.h:1941
int32 entryOrGuid
Definition: SmartScriptMgr.h:1939
uint32 timer
Definition: SmartScriptMgr.h:1954
SmartAction action
Definition: SmartScriptMgr.h:1945
SmartScriptType source_type
Definition: SmartScriptMgr.h:1940
SmartEvent event
Definition: SmartScriptMgr.h:1944
SmartTarget target
Definition: SmartScriptMgr.h:1946
uint32 priority
Definition: SmartScriptMgr.h:1955

Member Function Documentation

◆ GetActionType()

◆ GetEventType()

◆ GetScriptType()

◆ GetTargetType()

uint32 SmartScriptHolder::GetTargetType ( ) const
inline

◆ operator<()

bool SmartScriptHolder::operator< ( SmartScriptHolder const &  other) const
inline
1962 {
1963 return std::tie(priority, entryOrGuid, source_type, event_id, link) < std::tie(other.priority, other.entryOrGuid, other.source_type, other.event_id, other.link);
1964 }

References entryOrGuid, event_id, link, priority, and source_type.

Member Data Documentation

◆ action

◆ active

◆ DEFAULT_PRIORITY

constexpr uint32 SmartScriptHolder::DEFAULT_PRIORITY = std::numeric_limits<uint32>::max()
staticconstexpr

◆ enableTimed

bool SmartScriptHolder::enableTimed

◆ entryOrGuid

◆ event

◆ event_id

◆ link

uint32 SmartScriptHolder::link

◆ priority

uint32 SmartScriptHolder::priority

◆ runOnce

bool SmartScriptHolder::runOnce

◆ source_type

◆ target

◆ timer