60 {
"instance", instanceCommandTable },
90 for (
auto const& [mapId, bind] : group->GetBoundInstances(
Difficulty(i)))
113 if (mapArg.holds_alternative<
uint16>())
115 mapId = mapArg.get<
uint16>();
123 for (Player::BoundInstancesMap::iterator itr = binds.begin(); itr != binds.end();)
126 if (itr->first != player->
GetMapId() && (!mapId || mapId == itr->first) && (!difficultyArg || difficultyArg == save->
GetDifficulty()))
189 if (!player->IsConnected())
237 if (!player->IsConnected())
@ LANG_COMMAND_INST_SET_BOSS_STATE
@ LANG_COMMAND_LIST_BIND_GROUP_BINDS
@ LANG_COMMAND_INST_STAT_GROUPSBOUND
@ LANG_COMMAND_INST_GET_BOSS_STATE
@ LANG_COMMAND_LIST_BIND_PLAYER_BINDS
@ LANG_COMMAND_INST_STAT_SAVES
@ LANG_COMMAND_LIST_BIND_INFO
@ LANG_COMMAND_INST_STAT_PLAYERSBOUND
@ LANG_COMMAND_INST_UNBIND_UNBOUND
@ LANG_COMMAND_INST_STAT_PLAYERS_IN
@ LANG_COMMAND_INST_UNBIND_UNBINDING
@ LANG_COMMAND_INST_STAT_LOADED_INST
std::optional< T > Optional
Optional helper class to wrap optional values within.
Role Based Access Control related classes definition.
std::string secsToTimeString(uint64 timeInSecs, TimeFormat timeFormat, bool hoursOnly)
Player * getSelectedPlayer()
WorldSession * GetSession()
void SetSentErrorMessage(bool val)
void PSendSysMessage(char const *fmt, Args &&... args)
static char const * ToConstant(Enum value)
InstanceScript * GetInstanceScript()
uint32 GetInstanceId() const
Difficulty GetDifficulty() const
time_t GetResetTime() const
virtual bool SetBossState(uint32 id, EncounterState state)
EncounterState GetBossState(uint32 id) const
uint32 GetEncounterCount() const
InstanceMap * ToInstanceMap()
std::unordered_map< uint32, InstancePlayerBind > BoundInstancesMap
void UnbindInstance(uint32 mapid, Difficulty difficulty, bool unload=false)
BoundInstancesMap & GetBoundInstances(Difficulty difficulty)
Player * GetPlayer() const
ChatCommandTable GetCommands() const override
static bool HandleInstanceGetBossStateCommand(ChatHandler *handler, uint32 encounterId, Optional< PlayerIdentifier > player)
static bool HandleInstanceSetBossStateCommand(ChatHandler *handler, uint32 encounterId, EncounterState state, Optional< PlayerIdentifier > player)
static bool HandleInstanceSaveDataCommand(ChatHandler *handler)
static bool HandleInstanceUnbindCommand(ChatHandler *handler, Variant< uint16, EXACT_SEQUENCE("all")> mapArg, Optional< uint8 > difficultyArg)
static bool HandleInstanceStatsCommand(ChatHandler *handler)
static bool HandleInstanceListBindsCommand(ChatHandler *handler)
void AddSC_instance_commandscript()
std::vector< ChatCommandBuilder > ChatCommandTable
@ RBAC_PERM_COMMAND_INSTANCE_LISTBINDS
@ RBAC_PERM_COMMAND_INSTANCE_SET_BOSS_STATE
@ RBAC_PERM_COMMAND_INSTANCE_GET_BOSS_STATE
@ RBAC_PERM_COMMAND_INSTANCE_STATS
@ RBAC_PERM_COMMAND_INSTANCE_UNBIND
@ RBAC_PERM_COMMAND_INSTANCE_SAVEDATA
static Optional< PlayerIdentifier > FromSelf(ChatHandler *handler)