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

Classes

class  CreatureCountWorker
 

Public Member Functions

 debug_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
 
ScriptObject & operator= (ScriptObject const &right)=delete
 
ScriptObject & operator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool TryExtractTeamId (std::string const &args, TeamId &outFaction)
 
static bool HandleDebugWarModeBalanceCommand (ChatHandler *handler, Variant< uint32, EXACT_SEQUENCE("alliance"), EXACT_SEQUENCE("horde"), EXACT_SEQUENCE("neutral"), EXACT_SEQUENCE("off")> command, Optional< int32 > rewardValue)
 
static bool HandleDebugPlayCinematicCommand (ChatHandler *handler, uint32 cinematicId)
 
static bool HandleDebugPlayMovieCommand (ChatHandler *handler, uint32 movieId)
 
static bool HandleDebugPlaySoundCommand (ChatHandler *handler, uint32 soundId, Optional< uint32 > broadcastTextId)
 
static bool HandleDebugPlayMusicCommand (ChatHandler *handler, uint32 musicId)
 
static bool HandleDebugPlayObjectSoundCommand (ChatHandler *handler, int32 soundKitId, Optional< int32 > broadcastTextId)
 
static bool HandleDebugSendSpellFailCommand (ChatHandler *handler, SpellCastResult result, Optional< int32 > failArg1, Optional< int32 > failArg2)
 
static bool HandleDebugSendPlayerChoiceCommand (ChatHandler *handler, int32 choiceId)
 
static bool HandleDebugSendEquipErrorCommand (ChatHandler *handler, InventoryResult error)
 
static bool HandleDebugSendSellErrorCommand (ChatHandler *handler, SellResult error)
 
static bool HandleDebugSendBuyErrorCommand (ChatHandler *handler, BuyResult error)
 
static bool HandleDebugSendOpcodeCommand (ChatHandler *handler)
 
static bool HandleDebugUpdateWorldStateCommand (ChatHandler const *handler, int32 variable, int32 value)
 
static bool HandleDebugAreaTriggersCommand (ChatHandler *handler)
 
static bool HandleDebugSendChannelNotifyCommand (ChatHandler *handler, ChatNotify type)
 
static bool HandleDebugSendChatMsgCommand (ChatHandler *handler, ChatMsg type)
 
static bool HandleDebugSendQuestPartyMsgCommand (ChatHandler *handler, QuestPushReason msg)
 
static bool HandleDebugGetLootRecipientCommand (ChatHandler *handler)
 
static bool HandleDebugSendQuestInvalidMsgCommand (ChatHandler *handler, QuestFailedReason msg)
 
static bool HandleDebugGetItemStateCommand (ChatHandler *handler, std::string itemState)
 
static bool HandleDebugBattlegroundCommand (ChatHandler *)
 
static bool HandleDebugArenaCommand (ChatHandler *handler, uint32 battlemasterListId)
 
static bool HandleDebugThreatListCommand (ChatHandler *handler)
 
static bool HandleDebugThreatInfoCommand (ChatHandler *handler)
 
static bool HandleDebugCombatListCommand (ChatHandler *handler)
 
static bool HandleDebugEnterVehicleCommand (ChatHandler *handler, uint32 entry, Optional< int8 > seatId)
 
static bool HandleDebugSpawnVehicleCommand (ChatHandler *handler, uint32 entry, Optional< uint32 > id)
 
static bool HandleDebugSendLargePacketCommand (ChatHandler *handler)
 
static bool HandleDebugSendSetPhaseShiftCommand (ChatHandler *handler, Optional< uint32 > phaseId, Optional< uint32 > visibleMapId, Optional< uint32 > uiMapPhaseId)
 
static bool HandleDebugItemExpireCommand (ChatHandler *handler, ObjectGuid::LowType guid)
 
static bool HandleDebugAnimCommand (ChatHandler *handler, Emote emote)
 
static bool HandleDebugLoSCommand (ChatHandler *handler)
 
static bool HandleDebugSetAuraStateCommand (ChatHandler *handler, Optional< AuraStateType > state, bool apply)
 
static bool HandleDebugMoveflagsCommand (ChatHandler *handler, Optional< uint64 > moveFlags)
 
static bool HandleWPGPSCommand (ChatHandler *handler)
 
static bool HandleDebugTransportCommand (ChatHandler *handler, std::string operation)
 
static bool HandleDebugLoadCellsCommand (ChatHandler *handler, Optional< uint32 > mapId, Optional< uint32 > tileX, Optional< uint32 > tileY)
 
static bool HandleDebugLoadCellsCommandHelper (ChatHandler *handler, Map *map, Optional< uint32 > tileX, Optional< uint32 > tileY)
 
static bool HandleDebugBoundaryCommand (ChatHandler *handler, Optional< EXACT_SEQUENCE("fill")> fill, Optional< uint32 > durationArg)
 
static bool HandleDebugPhaseCommand (ChatHandler *handler)
 
static bool HandleDebugRaidResetCommand (ChatHandler *handler, uint32 mapId, Optional< uint32 > difficulty)
 
static bool HandleDebugQuestResetCommand (ChatHandler *handler, std::string arg)
 
static bool HandleDebugNearGraveyard (ChatHandler *handler, Optional< EXACT_SEQUENCE("linked")> linked)
 
static bool HandleDebugInstanceSpawns (ChatHandler *handler, Variant< uint32, EXACT_SEQUENCE("explain")> optArg)
 
static bool HandleDebugConversationCommand (ChatHandler *handler, uint32 conversationEntry)
 
static bool HandleDebugModifierTreeCommand (ChatHandler *handler, uint32 modifierTreeId)
 
static bool HandleDebugWSExpressionCommand (ChatHandler *handler, uint32 expressionId)
 
static bool HandleDebugPlayerConditionCommand (ChatHandler *handler, uint32 playerConditionId)
 
static bool HandleDebugOutOfBounds (ChatHandler *handler)
 
static bool HandleDebugMemoryLeak (ChatHandler *handler)
 
static bool HandleDebugGuidLimitsCommand (ChatHandler *handler, Optional< uint32 > mapId)
 
static void HandleDebugGuidLimitsMap (ChatHandler *handler, Map *map)
 
static bool HandleDebugObjectCountCommand (ChatHandler *handler, Optional< uint32 > mapId)
 
static void HandleDebugObjectCountMap (ChatHandler *handler, Map *map)
 
static bool HandleDebugBecomePersonalClone (ChatHandler *handler)
 
static bool HandleDebugDummyCommand (ChatHandler *handler)
 

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 67 of file cs_debug.cpp.

Constructor & Destructor Documentation

◆ debug_commandscript()

debug_commandscript::debug_commandscript ( )
inline

Definition at line 70 of file cs_debug.cpp.

Member Function Documentation

◆ GetCommands()

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

Implements CommandScript.

Definition at line 72 of file cs_debug.cpp.

References HandleDebugAnimCommand(), HandleDebugAreaTriggersCommand(), HandleDebugArenaCommand(), HandleDebugBattlegroundCommand(), HandleDebugBecomePersonalClone(), HandleDebugBoundaryCommand(), HandleDebugCombatListCommand(), HandleDebugConversationCommand(), HandleDebugDummyCommand(), HandleDebugEnterVehicleCommand(), HandleDebugGetItemStateCommand(), HandleDebugGetLootRecipientCommand(), HandleDebugGuidLimitsCommand(), HandleDebugInstanceSpawns(), HandleDebugItemExpireCommand(), HandleDebugLoadCellsCommand(), HandleDebugLoSCommand(), HandleDebugMemoryLeak(), HandleDebugModifierTreeCommand(), HandleDebugMoveflagsCommand(), HandleDebugNearGraveyard(), HandleDebugObjectCountCommand(), HandleDebugOutOfBounds(), HandleDebugPhaseCommand(), HandleDebugPlayCinematicCommand(), HandleDebugPlayerConditionCommand(), HandleDebugPlayMovieCommand(), HandleDebugPlayMusicCommand(), HandleDebugPlayObjectSoundCommand(), HandleDebugPlaySoundCommand(), HandleDebugQuestResetCommand(), HandleDebugRaidResetCommand(), HandleDebugSendBuyErrorCommand(), HandleDebugSendChannelNotifyCommand(), HandleDebugSendChatMsgCommand(), HandleDebugSendEquipErrorCommand(), HandleDebugSendLargePacketCommand(), HandleDebugSendOpcodeCommand(), HandleDebugSendPlayerChoiceCommand(), HandleDebugSendQuestInvalidMsgCommand(), HandleDebugSendQuestPartyMsgCommand(), HandleDebugSendSellErrorCommand(), HandleDebugSendSetPhaseShiftCommand(), HandleDebugSendSpellFailCommand(), HandleDebugSetAuraStateCommand(), HandleDebugSpawnVehicleCommand(), HandleDebugThreatInfoCommand(), HandleDebugThreatListCommand(), HandleDebugTransportCommand(), HandleDebugUpdateWorldStateCommand(), HandleDebugWarModeBalanceCommand(), HandleDebugWSExpressionCommand(), HandleWPGPSCommand(), and rbac::RBAC_PERM_COMMAND_DEBUG.

◆ HandleDebugAnimCommand()

static bool debug_commandscript::HandleDebugAnimCommand ( ChatHandler *  handler,
Emote  emote 
)
inlinestatic

◆ HandleDebugAreaTriggersCommand()

static bool debug_commandscript::HandleDebugAreaTriggersCommand ( ChatHandler *  handler)
inlinestatic

◆ HandleDebugArenaCommand()

static bool debug_commandscript::HandleDebugArenaCommand ( ChatHandler *  handler,
uint32  battlemasterListId 
)
inlinestatic

◆ HandleDebugBattlegroundCommand()

static bool debug_commandscript::HandleDebugBattlegroundCommand ( ChatHandler *  )
inlinestatic

Definition at line 854 of file cs_debug.cpp.

References sBattlegroundMgr.

Referenced by GetCommands().

◆ HandleDebugBecomePersonalClone()

static bool debug_commandscript::HandleDebugBecomePersonalClone ( ChatHandler *  handler)
inlinestatic

◆ HandleDebugBoundaryCommand()

static bool debug_commandscript::HandleDebugBoundaryCommand ( ChatHandler *  handler,
Optional< EXACT_SEQUENCE("fill")>  fill,
Optional< uint32 >  durationArg 
)
inlinestatic

◆ HandleDebugCombatListCommand()

◆ HandleDebugConversationCommand()

static bool debug_commandscript::HandleDebugConversationCommand ( ChatHandler *  handler,
uint32  conversationEntry 
)
inlinestatic

◆ HandleDebugDummyCommand()

static bool debug_commandscript::HandleDebugDummyCommand ( ChatHandler *  handler)
inlinestatic

Definition at line 1793 of file cs_debug.cpp.

References ChatHandler::SendSysMessage().

Referenced by GetCommands().

◆ HandleDebugEnterVehicleCommand()

static bool debug_commandscript::HandleDebugEnterVehicleCommand ( ChatHandler *  handler,
uint32  entry,
Optional< int8 >  seatId 
)
inlinestatic

◆ HandleDebugGetItemStateCommand()

◆ HandleDebugGetLootRecipientCommand()

static bool debug_commandscript::HandleDebugGetLootRecipientCommand ( ChatHandler *  handler)
inlinestatic

◆ HandleDebugGuidLimitsCommand()

static bool debug_commandscript::HandleDebugGuidLimitsCommand ( ChatHandler *  handler,
Optional< uint32 >  mapId 
)
inlinestatic

◆ HandleDebugGuidLimitsMap()

static void debug_commandscript::HandleDebugGuidLimitsMap ( ChatHandler *  handler,
Map *  map 
)
inlinestatic

◆ HandleDebugInstanceSpawns()

◆ HandleDebugItemExpireCommand()

static bool debug_commandscript::HandleDebugItemExpireCommand ( ChatHandler *  handler,
ObjectGuid::LowType  guid 
)
inlinestatic

◆ HandleDebugLoadCellsCommand()

static bool debug_commandscript::HandleDebugLoadCellsCommand ( ChatHandler *  handler,
Optional< uint32 >  mapId,
Optional< uint32 >  tileX,
Optional< uint32 >  tileY 
)
inlinestatic

Definition at line 1267 of file cs_debug.cpp.

References ChatHandler::GetPlayer(), HandleDebugLoadCellsCommandHelper(), and sMapMgr.

Referenced by GetCommands().

◆ HandleDebugLoadCellsCommandHelper()

static bool debug_commandscript::HandleDebugLoadCellsCommandHelper ( ChatHandler *  handler,
Map *  map,
Optional< uint32 >  tileX,
Optional< uint32 >  tileY 
)
inlinestatic

◆ HandleDebugLoSCommand()

static bool debug_commandscript::HandleDebugLoSCommand ( ChatHandler *  handler)
inlinestatic

◆ HandleDebugMemoryLeak()

static bool debug_commandscript::HandleDebugMemoryLeak ( ChatHandler *  handler)
inlinestatic

Definition at line 1660 of file cs_debug.cpp.

Referenced by GetCommands().

◆ HandleDebugModifierTreeCommand()

static bool debug_commandscript::HandleDebugModifierTreeCommand ( ChatHandler *  handler,
uint32  modifierTreeId 
)
inlinestatic

◆ HandleDebugMoveflagsCommand()

◆ HandleDebugNearGraveyard()

◆ HandleDebugObjectCountCommand()

static bool debug_commandscript::HandleDebugObjectCountCommand ( ChatHandler *  handler,
Optional< uint32 >  mapId 
)
inlinestatic

Definition at line 1701 of file cs_debug.cpp.

References HandleDebugObjectCountMap(), and sMapMgr.

Referenced by GetCommands().

◆ HandleDebugObjectCountMap()

◆ HandleDebugOutOfBounds()

static bool debug_commandscript::HandleDebugOutOfBounds ( ChatHandler *  handler)
inlinestatic

Definition at line 1649 of file cs_debug.cpp.

Referenced by GetCommands().

◆ HandleDebugPhaseCommand()

static bool debug_commandscript::HandleDebugPhaseCommand ( ChatHandler *  handler)
inlinestatic

◆ HandleDebugPlayCinematicCommand()

static bool debug_commandscript::HandleDebugPlayCinematicCommand ( ChatHandler *  handler,
uint32  cinematicId 
)
inlinestatic

◆ HandleDebugPlayerConditionCommand()

static bool debug_commandscript::HandleDebugPlayerConditionCommand ( ChatHandler *  handler,
uint32  playerConditionId 
)
inlinestatic

◆ HandleDebugPlayMovieCommand()

static bool debug_commandscript::HandleDebugPlayMovieCommand ( ChatHandler *  handler,
uint32  movieId 
)
inlinestatic

◆ HandleDebugPlayMusicCommand()

static bool debug_commandscript::HandleDebugPlayMusicCommand ( ChatHandler *  handler,
uint32  musicId 
)
inlinestatic

◆ HandleDebugPlayObjectSoundCommand()

static bool debug_commandscript::HandleDebugPlayObjectSoundCommand ( ChatHandler *  handler,
int32  soundKitId,
Optional< int32 >  broadcastTextId 
)
inlinestatic

◆ HandleDebugPlaySoundCommand()

◆ HandleDebugQuestResetCommand()

static bool debug_commandscript::HandleDebugQuestResetCommand ( ChatHandler *  handler,
std::string  arg 
)
inlinestatic

◆ HandleDebugRaidResetCommand()

static bool debug_commandscript::HandleDebugRaidResetCommand ( ChatHandler *  handler,
uint32  mapId,
Optional< uint32 >  difficulty 
)
inlinestatic

◆ HandleDebugSendBuyErrorCommand()

static bool debug_commandscript::HandleDebugSendBuyErrorCommand ( ChatHandler *  handler,
BuyResult  error 
)
inlinestatic

Definition at line 327 of file cs_debug.cpp.

References ChatHandler::GetPlayer(), and Player::SendBuyError().

Referenced by GetCommands().

◆ HandleDebugSendChannelNotifyCommand()

static bool debug_commandscript::HandleDebugSendChannelNotifyCommand ( ChatHandler *  handler,
ChatNotify  type 
)
inlinestatic

◆ HandleDebugSendChatMsgCommand()

static bool debug_commandscript::HandleDebugSendChatMsgCommand ( ChatHandler *  handler,
ChatMsg  type 
)
inlinestatic

◆ HandleDebugSendEquipErrorCommand()

static bool debug_commandscript::HandleDebugSendEquipErrorCommand ( ChatHandler *  handler,
InventoryResult  error 
)
inlinestatic

Definition at line 315 of file cs_debug.cpp.

References ChatHandler::GetPlayer(), and Player::SendEquipError().

Referenced by GetCommands().

◆ HandleDebugSendLargePacketCommand()

static bool debug_commandscript::HandleDebugSendLargePacketCommand ( ChatHandler *  handler)
inlinestatic

Definition at line 1115 of file cs_debug.cpp.

References ChatHandler::SendSysMessage().

Referenced by GetCommands().

◆ HandleDebugSendOpcodeCommand()

◆ HandleDebugSendPlayerChoiceCommand()

static bool debug_commandscript::HandleDebugSendPlayerChoiceCommand ( ChatHandler *  handler,
int32  choiceId 
)
inlinestatic

Definition at line 308 of file cs_debug.cpp.

References BaseEntity::GetGUID(), ChatHandler::GetPlayer(), and Player::SendPlayerChoice().

Referenced by GetCommands().

◆ HandleDebugSendQuestInvalidMsgCommand()

static bool debug_commandscript::HandleDebugSendQuestInvalidMsgCommand ( ChatHandler *  handler,
QuestFailedReason  msg 
)
inlinestatic

Definition at line 582 of file cs_debug.cpp.

References ChatHandler::GetPlayer(), and Player::SendCanTakeQuestResponse().

Referenced by GetCommands().

◆ HandleDebugSendQuestPartyMsgCommand()

static bool debug_commandscript::HandleDebugSendQuestPartyMsgCommand ( ChatHandler *  handler,
QuestPushReason  msg 
)
inlinestatic

◆ HandleDebugSendSellErrorCommand()

static bool debug_commandscript::HandleDebugSendSellErrorCommand ( ChatHandler *  handler,
SellResult  error 
)
inlinestatic

Definition at line 321 of file cs_debug.cpp.

References ObjectGuid::Empty, ChatHandler::GetPlayer(), and Player::SendSellError().

Referenced by GetCommands().

◆ HandleDebugSendSetPhaseShiftCommand()

static bool debug_commandscript::HandleDebugSendSetPhaseShiftCommand ( ChatHandler *  handler,
Optional< uint32 >  phaseId,
Optional< uint32 >  visibleMapId,
Optional< uint32 >  uiMapPhaseId 
)
inlinestatic

◆ HandleDebugSendSpellFailCommand()

◆ HandleDebugSetAuraStateCommand()

static bool debug_commandscript::HandleDebugSetAuraStateCommand ( ChatHandler *  handler,
Optional< AuraStateType >  state,
bool  apply 
)
inlinestatic

◆ HandleDebugSpawnVehicleCommand()

◆ HandleDebugThreatInfoCommand()

◆ HandleDebugThreatListCommand()

◆ HandleDebugTransportCommand()

static bool debug_commandscript::HandleDebugTransportCommand ( ChatHandler *  handler,
std::string  operation 
)
inlinestatic

◆ HandleDebugUpdateWorldStateCommand()

static bool debug_commandscript::HandleDebugUpdateWorldStateCommand ( ChatHandler const *  handler,
int32  variable,
int32  value 
)
inlinestatic

Definition at line 518 of file cs_debug.cpp.

References WorldObject::GetMap(), ChatHandler::GetPlayer(), and WorldStateMgr::SetValue().

Referenced by GetCommands().

◆ HandleDebugWarModeBalanceCommand()

static bool debug_commandscript::HandleDebugWarModeBalanceCommand ( ChatHandler *  handler,
Variant< uint32, EXACT_SEQUENCE("alliance"), EXACT_SEQUENCE("horde"), EXACT_SEQUENCE("neutral"), EXACT_SEQUENCE("off")>  command,
Optional< int32 >  rewardValue 
)
inlinestatic

◆ HandleDebugWSExpressionCommand()

◆ HandleWPGPSCommand()

static bool debug_commandscript::HandleWPGPSCommand ( ChatHandler *  handler)
inlinestatic

◆ TryExtractTeamId()

static bool debug_commandscript::TryExtractTeamId ( std::string const &  args,
TeamId &  outFaction 
)
inlinestatic

Definition at line 145 of file cs_debug.cpp.

References TEAM_ALLIANCE, TEAM_HORDE, and TEAM_NEUTRAL.


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