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
1966 , event_id(0), link(0), event(), action(), target(), timer(0), priority(DEFAULT_PRIORITY), active(false), runOnce(false)
1967 , enableTimed(false) {}
@ SMART_SCRIPT_TYPE_CREATURE
Definition SmartScriptMgr.h:1763
static constexpr uint32 DEFAULT_PRIORITY
Definition SmartScriptMgr.h:1996
bool runOnce
Definition SmartScriptMgr.h:1987
bool active
Definition SmartScriptMgr.h:1986
uint32 link
Definition SmartScriptMgr.h:1972
bool enableTimed
Definition SmartScriptMgr.h:1988
uint32 event_id
Definition SmartScriptMgr.h:1971
int32 entryOrGuid
Definition SmartScriptMgr.h:1969
uint32 timer
Definition SmartScriptMgr.h:1984
SmartAction action
Definition SmartScriptMgr.h:1975
SmartScriptType source_type
Definition SmartScriptMgr.h:1970
SmartEvent event
Definition SmartScriptMgr.h:1974
SmartTarget target
Definition SmartScriptMgr.h:1976
uint32 priority
Definition SmartScriptMgr.h:1985

Member Function Documentation

◆ GetActionType()

◆ GetEventType()

◆ GetScriptType()

◆ GetTargetType()

uint32 SmartScriptHolder::GetTargetType ( ) const
inline

◆ operator<()

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

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

◆ priority

uint32 SmartScriptHolder::priority

◆ runOnce

bool SmartScriptHolder::runOnce

◆ source_type

◆ target

◆ timer


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