TrinityCore
Loading...
Searching...
No Matches
wp_commandscript Class Reference
+ Inheritance diagram for wp_commandscript:

Public Member Functions

 wp_commandscript ()
 
std::span< ChatCommandBuilder const > GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool HandleWpAddCommand (ChatHandler *handler, Optional< uint32 > pathid)
 
static bool HandleWpLoadCommand (ChatHandler *handler, uint32 pathid)
 
static bool HandleWpReloadCommand (ChatHandler *handler, uint32 id)
 
static bool HandleWpUnLoadCommand (ChatHandler *handler)
 
static bool HandleWpModifyCommand (ChatHandler *handler, Variant< EXACT_SEQUENCE("del"), EXACT_SEQUENCE("move")> show)
 
static bool HandleWpShowCommand (ChatHandler *handler, Variant< EXACT_SEQUENCE("off"), EXACT_SEQUENCE("on"), EXACT_SEQUENCE("info")> show, Optional< uint32 > pathid)
 

Additional Inherited Members

- Protected Member Functions inherited from CommandScript
 CommandScript (char const *name) noexcept
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name) noexcept
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 41 of file cs_wp.cpp.

Constructor & Destructor Documentation

◆ wp_commandscript()

wp_commandscript::wp_commandscript ( )
inline

Definition at line 44 of file cs_wp.cpp.

Member Function Documentation

◆ GetCommands()

std::span< ChatCommandBuilder const > wp_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 46 of file cs_wp.cpp.

+ Here is the call graph for this function:

◆ HandleWpAddCommand()

static bool wp_commandscript::HandleWpAddCommand ( ChatHandler handler,
Optional< uint32 pathid 
)
inlinestatic

Add a waypoint to a creature.

The user can either select an npc or provide its GUID.

The user can even select a visual waypoint - then the new waypoint is placed after the selected one - this makes insertion of new waypoints possible.

eg: .wp add 12345 -> adds a waypoint to the npc with the GUID 12345

.wp add -> adds a waypoint to the currently selected creature

Parameters
pathid(optional)
Returns
true - command did succeed, false - something went wrong

Definition at line 84 of file cs_wp.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleWpLoadCommand()

static bool wp_commandscript::HandleWpLoadCommand ( ChatHandler handler,
uint32  pathid 
)
inlinestatic

Definition at line 156 of file cs_wp.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleWpModifyCommand()

static bool wp_commandscript::HandleWpModifyCommand ( ChatHandler handler,
Variant< EXACT_SEQUENCE("del"), EXACT_SEQUENCE("move")>  show 
)
inlinestatic

Definition at line 272 of file cs_wp.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleWpReloadCommand()

static bool wp_commandscript::HandleWpReloadCommand ( ChatHandler handler,
uint32  id 
)
inlinestatic

Definition at line 218 of file cs_wp.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleWpShowCommand()

static bool wp_commandscript::HandleWpShowCommand ( ChatHandler handler,
Variant< EXACT_SEQUENCE("off"), EXACT_SEQUENCE("on"), EXACT_SEQUENCE("info")>  show,
Optional< uint32 pathid 
)
inlinestatic

Definition at line 333 of file cs_wp.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleWpUnLoadCommand()

static bool wp_commandscript::HandleWpUnLoadCommand ( ChatHandler handler)
inlinestatic

Definition at line 228 of file cs_wp.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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