TrinityCore
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
 
 operator bool () const
 
std::strong_ordering operator<=> (SmartScriptHolder const &right) const
 

Public Attributes

int64 entryOrGuid
 
SmartScriptType source_type
 
uint32 event_id
 
uint32 link
 
std::vector< Difficulty > Difficulties
 
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

Definition at line 1667 of file SmartScriptMgr.h.

Constructor & Destructor Documentation

◆ SmartScriptHolder()

SmartScriptHolder::SmartScriptHolder ( )
inline

Definition at line 1669 of file SmartScriptMgr.h.

Member Function Documentation

◆ GetActionType()

◆ GetEventType()

◆ GetScriptType()

◆ GetTargetType()

◆ operator bool()

SmartScriptHolder::operator bool ( ) const
inline

Definition at line 1694 of file SmartScriptMgr.h.

References entryOrGuid.

◆ operator<=>()

std::strong_ordering SmartScriptHolder::operator<=> ( SmartScriptHolder const &  right) const
inline

Definition at line 1696 of file SmartScriptMgr.h.

References entryOrGuid, event_id, advstd::is_neq(), link, priority, and source_type.

Member Data Documentation

◆ action

◆ active

bool SmartScriptHolder::active

◆ DEFAULT_PRIORITY

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

◆ Difficulties

std::vector<Difficulty> SmartScriptHolder::Difficulties

Definition at line 1677 of file SmartScriptMgr.h.

Referenced by SmartAIMgr::LoadSmartAIFromDB().

◆ enableTimed

bool SmartScriptHolder::enableTimed

Definition at line 1692 of file SmartScriptMgr.h.

Referenced by SmartScript::OnUpdate(), and SmartScript::UpdateTimer().

◆ entryOrGuid

◆ event

◆ event_id

◆ link

uint32 SmartScriptHolder::link

◆ priority

uint32 SmartScriptHolder::priority

◆ runOnce

bool SmartScriptHolder::runOnce

◆ source_type

◆ target

◆ timer

uint32 SmartScriptHolder::timer

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