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

Public Member Functions

 gobject_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 HandleGameObjectActivateCommand (ChatHandler *handler, GameObjectSpawnId guidLow)
 
static bool HandleGameObjectAddCommand (ChatHandler *handler, GameObjectEntry objectId, Optional< int32 > spawnTimeSecs)
 
static bool HandleGameObjectAddTempCommand (ChatHandler *handler, GameObjectEntry objectId, Optional< uint64 > spawntime)
 
static bool HandleGameObjectTargetCommand (ChatHandler *handler, Optional< Variant< GameObjectEntry, std::string_view > > objectId)
 
static bool HandleGameObjectDeleteCommand (ChatHandler *handler, GameObjectSpawnId spawnId)
 
static bool HandleGameObjectTurnCommand (ChatHandler *handler, GameObjectSpawnId guidLow, Optional< float > oz, Optional< float > oy, Optional< float > ox)
 
static bool HandleGameObjectMoveCommand (ChatHandler *handler, GameObjectSpawnId guidLow, Optional< std::array< float, 3 > > xyz)
 
static bool HandleGameObjectSetPhaseCommand (ChatHandler *handler, GameObjectSpawnId guidLow, uint32 phaseId)
 
static bool HandleGameObjectNearCommand (ChatHandler *handler, Optional< float > dist)
 
static bool HandleGameObjectInfoCommand (ChatHandler *handler, Optional< EXACT_SEQUENCE("guid")> isGuid, Variant< Hyperlink< gameobject_entry >, Hyperlink< gameobject >, uint32 > data)
 
static bool HandleGameObjectSetStateCommand (ChatHandler *handler, GameObjectSpawnId guidLow, int32 objectType, Optional< uint32 > objectState)
 

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 56 of file cs_gobject.cpp.

Constructor & Destructor Documentation

◆ gobject_commandscript()

gobject_commandscript::gobject_commandscript ( )
inline

Definition at line 59 of file cs_gobject.cpp.

Member Function Documentation

◆ GetCommands()

◆ HandleGameObjectActivateCommand()

static bool gobject_commandscript::HandleGameObjectActivateCommand ( ChatHandler *  handler,
GameObjectSpawnId  guidLow 
)
inlinestatic

◆ HandleGameObjectAddCommand()

◆ HandleGameObjectAddTempCommand()

static bool gobject_commandscript::HandleGameObjectAddTempCommand ( ChatHandler *  handler,
GameObjectEntry  objectId,
Optional< uint64 >  spawntime 
)
inlinestatic

◆ HandleGameObjectDeleteCommand()

◆ HandleGameObjectInfoCommand()

static bool gobject_commandscript::HandleGameObjectInfoCommand ( ChatHandler *  handler,
Optional< EXACT_SEQUENCE("guid")>  isGuid,
Variant< Hyperlink< gameobject_entry >, Hyperlink< gameobject >, uint32 >  data 
)
inlinestatic

Definition at line 489 of file cs_gobject.cpp.

References GameObject::AI(), GameObjectTemplate::AIName, GameObjectTemplate::chest, GameObjectTemplate::chestPersonalLoot, GameObjectTemplate::displayId, GameObjectOverride::Faction, GameObjectOverride::Flags, SpawnGroupTemplateData::flags, GAMEOBJECT_TYPE_CHEST, GameObject::GetGameObjectData(), BaseEntity::GetGUID(), GameObjectTemplate::GetLootId(), WorldObject::GetMap(), ChatHandler::GetObjectFromPlayerMapByDbGuid(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), GameObject::GetRespawnCompatibilityMode(), Trinity::GetTypeName(), SpawnGroupTemplateData::groupId, SpawnData::id, Map::IsSpawnGroupActive(), LANG_COMMAND_OBJNOTFOUND, LANG_GAMEOBJECT_NOT_EXIST, LANG_GOINFO_ADDON, LANG_GOINFO_DISPLAYID, LANG_GOINFO_ENTRY, LANG_GOINFO_LOOTID, LANG_GOINFO_MODEL, LANG_GOINFO_NAME, LANG_GOINFO_SIZE, LANG_GOINFO_TYPE, LANG_OBJECTINFO_AIINFO, LANG_OBJECTINFO_AITYPE, LANG_SPAWNINFO_COMPATIBILITY_MODE, LANG_SPAWNINFO_GROUP_ID, LANG_SPAWNINFO_GUIDINFO, LANG_SPAWNINFO_ROTATION, LANG_SPAWNINFO_SPAWNID_LOCATION, GameObjectTemplate::name, SpawnGroupTemplateData::name, ChatHandler::PSendSysMessage(), GameObjectData::rotation, GameObjectTemplate::ScriptId, ChatHandler::SetSentErrorMessage(), sGameObjectDisplayInfoStore, GameObjectTemplate::size, sObjectMgr, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnPoint, QuaternionData::toEulerAnglesZYX(), ObjectGuid::ToString(), and GameObjectTemplate::type.

Referenced by GetCommands().

◆ HandleGameObjectMoveCommand()

◆ HandleGameObjectNearCommand()

◆ HandleGameObjectSetPhaseCommand()

static bool gobject_commandscript::HandleGameObjectSetPhaseCommand ( ChatHandler *  handler,
GameObjectSpawnId  guidLow,
uint32  phaseId 
)
inlinestatic

◆ HandleGameObjectSetStateCommand()

static bool gobject_commandscript::HandleGameObjectSetStateCommand ( ChatHandler *  handler,
GameObjectSpawnId  guidLow,
int32  objectType,
Optional< uint32 >  objectState 
)
inlinestatic

◆ HandleGameObjectTargetCommand()

◆ HandleGameObjectTurnCommand()


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