![]() |
TrinityCore
|
#include <ScriptMgr.h>
Public Types | |
| typedef void(* | ScriptLoaderCallbackType) () |
Public Member Functions | |
| void | Initialize () |
| uint32 | GetScriptCount () const |
| void | SetScriptLoader (ScriptLoaderCallbackType script_loader_callback) |
| void | SetScriptContext (std::string const &context) |
| std::string const & | GetCurrentScriptContext () const |
| Returns the current script context. | |
| void | ReleaseScriptContext (std::string const &context) |
| void | SwapScriptContext (bool initialize=false) |
| std::shared_ptr< ModuleReference > | AcquireModuleReferenceOfScriptName (std::string const &scriptname) const |
| void | Unload () |
| void | CreateSpellScripts (uint32 spellId, std::vector< SpellScript * > &scriptVector, Spell *invoker) const |
| void | CreateAuraScripts (uint32 spellId, std::vector< AuraScript * > &scriptVector, Aura *invoker) const |
| SpellScriptLoader * | GetSpellScriptLoader (uint32 scriptId) |
| void | OnNetworkStart () |
| void | OnNetworkStop () |
| void | OnSocketOpen (std::shared_ptr< WorldSocket > const &socket) |
| void | OnSocketClose (std::shared_ptr< WorldSocket > const &socket) |
| void | OnPacketReceive (WorldSession *session, WorldPacket const &packet) |
| void | OnPacketSend (WorldSession *session, WorldPacket const &packet) |
| void | OnOpenStateChange (bool open) |
| void | OnConfigLoad (bool reload) |
| void | OnMotdChange (std::string &newMotd) |
| void | OnShutdownInitiate (ShutdownExitCode code, ShutdownMask mask) |
| void | OnShutdownCancel () |
| void | OnWorldUpdate (uint32 diff) |
| void | OnStartup () |
| void | OnShutdown () |
| void | OnHonorCalculation (float &honor, uint8 level, float multiplier) |
| void | OnGrayLevelCalculation (uint8 &grayLevel, uint8 playerLevel) |
| void | OnColorCodeCalculation (XPColorChar &color, uint8 playerLevel, uint8 mobLevel) |
| void | OnZeroDifferenceCalculation (uint8 &diff, uint8 playerLevel) |
| void | OnBaseGainCalculation (uint32 &gain, uint8 playerLevel, uint8 mobLevel, ContentLevels content) |
| void | OnGainCalculation (uint32 &gain, Player *player, Unit *unit) |
| void | OnGroupRateCalculation (float &rate, uint32 count, bool isRaid) |
| void | OnCreateMap (Map *map) |
| void | OnDestroyMap (Map *map) |
| void | OnLoadGridMap (Map *map, GridMap *gmap, uint32 gx, uint32 gy) |
| void | OnUnloadGridMap (Map *map, GridMap *gmap, uint32 gx, uint32 gy) |
| void | OnPlayerEnterMap (Map *map, Player *player) |
| void | OnPlayerLeaveMap (Map *map, Player *player) |
| void | OnMapUpdate (Map *map, uint32 diff) |
| InstanceScript * | CreateInstanceData (InstanceMap *map) |
| bool | OnQuestAccept (Player *player, Item *item, Quest const *quest) |
| bool | OnItemUse (Player *player, Item *item, SpellCastTargets const &targets) |
| bool | OnItemExpire (Player *player, ItemTemplate const *proto) |
| bool | OnItemRemove (Player *player, Item *item) |
| bool | OnCastItemCombatSpell (Player *player, Unit *victim, SpellInfo const *spellInfo, Item *item) |
| CreatureAI * | GetCreatureAI (Creature *creature) |
| GameObjectAI * | GetGameObjectAI (GameObject *go) |
| bool | OnAreaTrigger (Player *player, AreaTriggerEntry const *trigger) |
| Battlefield * | CreateBattlefield (uint32 scriptId) |
| Battleground * | CreateBattleground (BattlegroundTypeId typeId) |
| OutdoorPvP * | CreateOutdoorPvP (uint32 scriptId) |
| std::vector< Trinity::ChatCommands::ChatCommandBuilder > | GetChatCommands () |
| void | OnWeatherChange (Weather *weather, WeatherState state, float grade) |
| void | OnWeatherUpdate (Weather *weather, uint32 diff) |
| void | OnAuctionAdd (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnAuctionRemove (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnAuctionSuccessful (AuctionHouseObject *ah, AuctionEntry *entry) |
| void | OnAuctionExpire (AuctionHouseObject *ah, AuctionEntry *entry) |
| bool | OnConditionCheck (Condition const *condition, ConditionSourceInfo &sourceInfo) |
| void | OnInstall (Vehicle *veh) |
| void | OnUninstall (Vehicle *veh) |
| void | OnReset (Vehicle *veh) |
| void | OnInstallAccessory (Vehicle *veh, Creature *accessory) |
| void | OnAddPassenger (Vehicle *veh, Unit *passenger, int8 seatId) |
| void | OnRemovePassenger (Vehicle *veh, Unit *passenger) |
| void | OnDynamicObjectUpdate (DynamicObject *dynobj, uint32 diff) |
| void | OnAddPassenger (Transport *transport, Player *player) |
| void | OnAddCreaturePassenger (Transport *transport, Creature *creature) |
| void | OnRemovePassenger (Transport *transport, Player *player) |
| void | OnTransportUpdate (Transport *transport, uint32 diff) |
| void | OnRelocate (Transport *transport, uint32 waypointId, uint32 mapId, float x, float y, float z) |
| bool | OnCriteriaCheck (uint32 scriptId, Player *source, Unit *target) |
| void | OnPVPKill (Player *killer, Player *killed) |
| void | OnCreatureKill (Player *killer, Creature *killed) |
| void | OnPlayerKilledByCreature (Creature *killer, Player *killed) |
| void | OnPlayerLevelChanged (Player *player, uint8 oldLevel) |
| void | OnPlayerFreeTalentPointsChanged (Player *player, uint32 newPoints) |
| void | OnPlayerTalentsReset (Player *player, bool involuntarily) |
| void | OnPlayerMoneyChanged (Player *player, int32 &amount) |
| void | OnPlayerMoneyLimit (Player *player, int32 amount) |
| void | OnGivePlayerXP (Player *player, uint32 &amount, Unit *victim) |
| void | OnPlayerReputationChange (Player *player, uint32 factionID, int32 &standing, bool incremental) |
| void | OnPlayerDuelRequest (Player *target, Player *challenger) |
| void | OnPlayerDuelStart (Player *player1, Player *player2) |
| void | OnPlayerDuelEnd (Player *winner, Player *loser, DuelCompleteType type) |
| void | OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg) |
| void | OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Player *receiver) |
| void | OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Group *group) |
| void | OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Guild *guild) |
| void | OnPlayerChat (Player *player, uint32 type, uint32 lang, std::string &msg, Channel *channel) |
| void | OnPlayerEmote (Player *player, Emote emote) |
| void | OnPlayerTextEmote (Player *player, uint32 textEmote, uint32 emoteNum, ObjectGuid guid) |
| void | OnPlayerSpellCast (Player *player, Spell *spell, bool skipCheck) |
| void | OnPlayerLogin (Player *player, bool firstLogin) |
| void | OnPlayerLogout (Player *player) |
| void | OnPlayerCreate (Player *player) |
| void | OnPlayerDelete (ObjectGuid guid, uint32 accountId) |
| void | OnPlayerFailedDelete (ObjectGuid guid, uint32 accountId) |
| void | OnPlayerSave (Player *player) |
| void | OnPlayerBindToInstance (Player *player, Difficulty difficulty, uint32 mapid, bool permanent, uint8 extendState) |
| void | OnPlayerUpdateZone (Player *player, uint32 newZone, uint32 newArea) |
| void | OnQuestObjectiveProgress (Player *player, Quest const *quest, uint32 objectiveIndex, uint16 progress) |
| void | OnQuestStatusChange (Player *player, uint32 questId) |
| void | OnMovieComplete (Player *player, uint32 movieId) |
| void | OnPlayerRepop (Player *player) |
| void | OnAccountLogin (uint32 accountId) |
| void | OnFailedAccountLogin (uint32 accountId) |
| void | OnEmailChange (uint32 accountId) |
| void | OnFailedEmailChange (uint32 accountId) |
| void | OnPasswordChange (uint32 accountId) |
| void | OnFailedPasswordChange (uint32 accountId) |
| void | OnGuildAddMember (Guild *guild, Player *player, uint8 &plRank) |
| void | OnGuildRemoveMember (Guild *guild, Player *player, bool isDisbanding, bool isKicked) |
| void | OnGuildMOTDChanged (Guild *guild, const std::string &newMotd) |
| void | OnGuildInfoChanged (Guild *guild, const std::string &newInfo) |
| void | OnGuildCreate (Guild *guild, Player *leader, const std::string &name) |
| void | OnGuildDisband (Guild *guild) |
| void | OnGuildMemberWitdrawMoney (Guild *guild, Player *player, uint32 &amount, bool isRepair) |
| void | OnGuildMemberDepositMoney (Guild *guild, Player *player, uint32 &amount) |
| void | OnGuildItemMove (Guild *guild, Player *player, Item *pItem, bool isSrcBank, uint8 srcContainer, uint8 srcSlotId, bool isDestBank, uint8 destContainer, uint8 destSlotId) |
| void | OnGuildEvent (Guild *guild, uint8 eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2, uint8 newRank) |
| void | OnGuildBankEvent (Guild *guild, uint8 eventType, uint8 tabId, ObjectGuid::LowType playerGuid, uint32 itemOrMoney, uint16 itemStackCount, uint8 destTabId) |
| void | OnGroupAddMember (Group *group, ObjectGuid guid) |
| void | OnGroupInviteMember (Group *group, ObjectGuid guid) |
| void | OnGroupRemoveMember (Group *group, ObjectGuid guid, RemoveMethod method, ObjectGuid kicker, char const *reason) |
| void | OnGroupChangeLeader (Group *group, ObjectGuid newLeaderGuid, ObjectGuid oldLeaderGuid) |
| void | OnGroupDisband (Group *group) |
| void | OnHeal (Unit *healer, Unit *reciever, uint32 &gain) |
| void | OnDamage (Unit *attacker, Unit *victim, uint32 &damage) |
| void | ModifyPeriodicDamageAurasTick (Unit *target, Unit *attacker, uint32 &damage) |
| void | ModifyMeleeDamage (Unit *target, Unit *attacker, uint32 &damage) |
| void | ModifySpellDamageTaken (Unit *target, Unit *attacker, int32 &damage) |
Static Public Member Functions | |
| static ScriptMgr * | instance () |
| static std::string const & | GetNameOfStaticContext () |
| Returns the context name of the static context provided by the worldserver. | |
Private Member Functions | |
| ScriptMgr () | |
| virtual | ~ScriptMgr () |
| void | FillSpellSummary () |
| void | LoadDatabase () |
| void | IncreaseScriptCount () |
| void | DecreaseScriptCount () |
Private Attributes | |
| uint32 | _scriptCount |
| ScriptLoaderCallbackType | _script_loader_callback |
| std::string | _currentContext |
Friends | |
| class | ScriptObject |
Definition at line 819 of file ScriptMgr.h.
| typedef void(* ScriptMgr::ScriptLoaderCallbackType) () |
Definition at line 840 of file ScriptMgr.h.
|
private |
Definition at line 1020 of file ScriptMgr.cpp.
|
privatevirtual |
Definition at line 1025 of file ScriptMgr.cpp.
| std::shared_ptr< ModuleReference > ScriptMgr::AcquireModuleReferenceOfScriptName | ( | std::string const & | scriptname | ) | const |
Acquires a strong module reference to the module containing the given script name, which prevents the shared library which contains the script from unloading. The shared library is lazy unloaded as soon as all references to it are released.
Definition at line 1113 of file ScriptMgr.cpp.
Here is the call graph for this function:| void ScriptMgr::CreateAuraScripts | ( | uint32 | spellId, |
| std::vector< AuraScript * > & | scriptVector, | ||
| Aura * | invoker | ||
| ) | const |
| Battlefield * ScriptMgr::CreateBattlefield | ( | uint32 | scriptId | ) |
Definition at line 1610 of file ScriptMgr.cpp.
| Battleground * ScriptMgr::CreateBattleground | ( | BattlegroundTypeId | typeId | ) |
Definition at line 1616 of file ScriptMgr.cpp.
| InstanceScript * ScriptMgr::CreateInstanceData | ( | InstanceMap * | map | ) |
| OutdoorPvP * ScriptMgr::CreateOutdoorPvP | ( | uint32 | scriptId | ) |
Definition at line 1623 of file ScriptMgr.cpp.
| void ScriptMgr::CreateSpellScripts | ( | uint32 | spellId, |
| std::vector< SpellScript * > & | scriptVector, | ||
| Spell * | invoker | ||
| ) | const |
|
inlineprivate |
Definition at line 831 of file ScriptMgr.h.
|
private |
Definition at line 1140 of file ScriptMgr.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Trinity::ChatCommands::ChatCommandTable ScriptMgr::GetChatCommands | ( | ) |
Definition at line 1629 of file ScriptMgr.cpp.
| CreatureAI * ScriptMgr::GetCreatureAI | ( | Creature * | creature | ) |
|
inline |
Returns the current script context.
Definition at line 855 of file ScriptMgr.h.
| GameObjectAI * ScriptMgr::GetGameObjectAI | ( | GameObject * | go | ) |
|
static |
Returns the context name of the static context provided by the worldserver.
Definition at line 1101 of file ScriptMgr.cpp.
Here is the caller graph for this function:
|
inline |
| SpellScriptLoader * ScriptMgr::GetSpellScriptLoader | ( | uint32 | scriptId | ) |
|
inlineprivate |
Definition at line 830 of file ScriptMgr.h.
| void ScriptMgr::Initialize | ( | ) |
|
static |
Definition at line 1027 of file ScriptMgr.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 2124 of file ScriptMgr.cpp.
Definition at line 2119 of file ScriptMgr.cpp.
Definition at line 2129 of file ScriptMgr.cpp.
| void ScriptMgr::OnAccountLogin | ( | uint32 | accountId | ) |
Definition at line 1990 of file ScriptMgr.cpp.
| bool ScriptMgr::OnAreaTrigger | ( | Player * | player, |
| AreaTriggerEntry const * | trigger | ||
| ) |
Definition at line 1601 of file ScriptMgr.cpp.
| void ScriptMgr::OnAuctionAdd | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry | ||
| ) |
Definition at line 1658 of file ScriptMgr.cpp.
| void ScriptMgr::OnAuctionExpire | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry | ||
| ) |
Definition at line 1682 of file ScriptMgr.cpp.
| void ScriptMgr::OnAuctionRemove | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry | ||
| ) |
Definition at line 1666 of file ScriptMgr.cpp.
| void ScriptMgr::OnAuctionSuccessful | ( | AuctionHouseObject * | ah, |
| AuctionEntry * | entry | ||
| ) |
Definition at line 1674 of file ScriptMgr.cpp.
| void ScriptMgr::OnBaseGainCalculation | ( | uint32 & | gain, |
| uint8 | playerLevel, | ||
| uint8 | mobLevel, | ||
| ContentLevels | content | ||
| ) |
Definition at line 1365 of file ScriptMgr.cpp.
| void ScriptMgr::OnColorCodeCalculation | ( | XPColorChar & | color, |
| uint8 | playerLevel, | ||
| uint8 | mobLevel | ||
| ) |
Definition at line 1355 of file ScriptMgr.cpp.
| bool ScriptMgr::OnConditionCheck | ( | Condition const * | condition, |
| ConditionSourceInfo & | sourceInfo | ||
| ) |
Definition at line 1690 of file ScriptMgr.cpp.
| void ScriptMgr::OnConfigLoad | ( | bool | reload | ) |
Definition at line 1320 of file ScriptMgr.cpp.
| void ScriptMgr::OnCreateMap | ( | Map * | map | ) |
Definition at line 1400 of file ScriptMgr.cpp.
Definition at line 1829 of file ScriptMgr.cpp.
Definition at line 1814 of file ScriptMgr.cpp.
Definition at line 2114 of file ScriptMgr.cpp.
| void ScriptMgr::OnDestroyMap | ( | Map * | map | ) |
Definition at line 1417 of file ScriptMgr.cpp.
| void ScriptMgr::OnDynamicObjectUpdate | ( | DynamicObject * | dynobj, |
| uint32 | diff | ||
| ) |
Definition at line 1755 of file ScriptMgr.cpp.
| void ScriptMgr::OnEmailChange | ( | uint32 | accountId | ) |
Definition at line 2000 of file ScriptMgr.cpp.
| void ScriptMgr::OnFailedAccountLogin | ( | uint32 | accountId | ) |
Definition at line 1995 of file ScriptMgr.cpp.
| void ScriptMgr::OnFailedEmailChange | ( | uint32 | accountId | ) |
Definition at line 2005 of file ScriptMgr.cpp.
| void ScriptMgr::OnFailedPasswordChange | ( | uint32 | accountId | ) |
Definition at line 2015 of file ScriptMgr.cpp.
Definition at line 1370 of file ScriptMgr.cpp.
Definition at line 1864 of file ScriptMgr.cpp.
Definition at line 1350 of file ScriptMgr.cpp.
| void ScriptMgr::OnGroupAddMember | ( | Group * | group, |
| ObjectGuid | guid | ||
| ) |
Definition at line 2078 of file ScriptMgr.cpp.
| void ScriptMgr::OnGroupChangeLeader | ( | Group * | group, |
| ObjectGuid | newLeaderGuid, | ||
| ObjectGuid | oldLeaderGuid | ||
| ) |
Definition at line 2096 of file ScriptMgr.cpp.
| void ScriptMgr::OnGroupDisband | ( | Group * | group | ) |
Definition at line 2102 of file ScriptMgr.cpp.
| void ScriptMgr::OnGroupInviteMember | ( | Group * | group, |
| ObjectGuid | guid | ||
| ) |
Definition at line 2084 of file ScriptMgr.cpp.
| void ScriptMgr::OnGroupRateCalculation | ( | float & | rate, |
| uint32 | count, | ||
| bool | isRaid | ||
| ) |
Definition at line 1378 of file ScriptMgr.cpp.
| void ScriptMgr::OnGroupRemoveMember | ( | Group * | group, |
| ObjectGuid | guid, | ||
| RemoveMethod | method, | ||
| ObjectGuid | kicker, | ||
| char const * | reason | ||
| ) |
Definition at line 2090 of file ScriptMgr.cpp.
Definition at line 2021 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildBankEvent | ( | Guild * | guild, |
| uint8 | eventType, | ||
| uint8 | tabId, | ||
| ObjectGuid::LowType | playerGuid, | ||
| uint32 | itemOrMoney, | ||
| uint16 | itemStackCount, | ||
| uint8 | destTabId | ||
| ) |
Definition at line 2072 of file ScriptMgr.cpp.
Definition at line 2041 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildDisband | ( | Guild * | guild | ) |
Definition at line 2046 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildEvent | ( | Guild * | guild, |
| uint8 | eventType, | ||
| ObjectGuid::LowType | playerGuid1, | ||
| ObjectGuid::LowType | playerGuid2, | ||
| uint8 | newRank | ||
| ) |
Definition at line 2067 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildInfoChanged | ( | Guild * | guild, |
| const std::string & | newInfo | ||
| ) |
Definition at line 2036 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildItemMove | ( | Guild * | guild, |
| Player * | player, | ||
| Item * | pItem, | ||
| bool | isSrcBank, | ||
| uint8 | srcContainer, | ||
| uint8 | srcSlotId, | ||
| bool | isDestBank, | ||
| uint8 | destContainer, | ||
| uint8 | destSlotId | ||
| ) |
Definition at line 2061 of file ScriptMgr.cpp.
Definition at line 2056 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildMemberWitdrawMoney | ( | Guild * | guild, |
| Player * | player, | ||
| uint32 & | amount, | ||
| bool | isRepair | ||
| ) |
Definition at line 2051 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildMOTDChanged | ( | Guild * | guild, |
| const std::string & | newMotd | ||
| ) |
Definition at line 2031 of file ScriptMgr.cpp.
| void ScriptMgr::OnGuildRemoveMember | ( | Guild * | guild, |
| Player * | player, | ||
| bool | isDisbanding, | ||
| bool | isKicked | ||
| ) |
Definition at line 2026 of file ScriptMgr.cpp.
Definition at line 2109 of file ScriptMgr.cpp.
| void ScriptMgr::OnHonorCalculation | ( | float & | honor, |
| uint8 | level, | ||
| float | multiplier | ||
| ) |
Definition at line 1345 of file ScriptMgr.cpp.
| void ScriptMgr::OnInstall | ( | Vehicle * | veh | ) |
| bool ScriptMgr::OnItemExpire | ( | Player * | player, |
| ItemTemplate const * | proto | ||
| ) |
Definition at line 1556 of file ScriptMgr.cpp.
| bool ScriptMgr::OnItemUse | ( | Player * | player, |
| Item * | item, | ||
| SpellCastTargets const & | targets | ||
| ) |
Definition at line 1434 of file ScriptMgr.cpp.
Definition at line 1508 of file ScriptMgr.cpp.
| void ScriptMgr::OnMotdChange | ( | std::string & | newMotd | ) |
Definition at line 1325 of file ScriptMgr.cpp.
Definition at line 1984 of file ScriptMgr.cpp.
| void ScriptMgr::OnNetworkStart | ( | ) |
Definition at line 1271 of file ScriptMgr.cpp.
| void ScriptMgr::OnNetworkStop | ( | ) |
Definition at line 1276 of file ScriptMgr.cpp.
| void ScriptMgr::OnOpenStateChange | ( | bool | open | ) |
Definition at line 1315 of file ScriptMgr.cpp.
| void ScriptMgr::OnPacketReceive | ( | WorldSession * | session, |
| WorldPacket const & | packet | ||
| ) |
Definition at line 1295 of file ScriptMgr.cpp.
| void ScriptMgr::OnPacketSend | ( | WorldSession * | session, |
| WorldPacket const & | packet | ||
| ) |
Definition at line 1304 of file ScriptMgr.cpp.
| void ScriptMgr::OnPasswordChange | ( | uint32 | accountId | ) |
Definition at line 2010 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerBindToInstance | ( | Player * | player, |
| Difficulty | difficulty, | ||
| uint32 | mapid, | ||
| bool | permanent, | ||
| uint8 | extendState | ||
| ) |
Definition at line 1959 of file ScriptMgr.cpp.
Definition at line 1889 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| uint32 | type, | ||
| uint32 | lang, | ||
| std::string & | msg, | ||
| Channel * | channel | ||
| ) |
Definition at line 1909 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| uint32 | type, | ||
| uint32 | lang, | ||
| std::string & | msg, | ||
| Group * | group | ||
| ) |
Definition at line 1899 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| uint32 | type, | ||
| uint32 | lang, | ||
| std::string & | msg, | ||
| Guild * | guild | ||
| ) |
Definition at line 1904 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerChat | ( | Player * | player, |
| uint32 | type, | ||
| uint32 | lang, | ||
| std::string & | msg, | ||
| Player * | receiver | ||
| ) |
Definition at line 1894 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerCreate | ( | Player * | player | ) |
Definition at line 1939 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerDelete | ( | ObjectGuid | guid, |
| uint32 | accountId | ||
| ) |
Definition at line 1944 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerDuelEnd | ( | Player * | winner, |
| Player * | loser, | ||
| DuelCompleteType | type | ||
| ) |
Definition at line 1884 of file ScriptMgr.cpp.
Definition at line 1874 of file ScriptMgr.cpp.
Definition at line 1879 of file ScriptMgr.cpp.
Definition at line 1914 of file ScriptMgr.cpp.
Definition at line 1470 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerFailedDelete | ( | ObjectGuid | guid, |
| uint32 | accountId | ||
| ) |
Definition at line 1949 of file ScriptMgr.cpp.
Definition at line 1844 of file ScriptMgr.cpp.
Definition at line 1834 of file ScriptMgr.cpp.
Definition at line 1490 of file ScriptMgr.cpp.
Definition at line 1839 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerLogin | ( | Player * | player, |
| bool | firstLogin | ||
| ) |
Definition at line 1929 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerLogout | ( | Player * | player | ) |
Definition at line 1934 of file ScriptMgr.cpp.
Definition at line 1854 of file ScriptMgr.cpp.
Definition at line 1859 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerRepop | ( | Player * | player | ) |
Definition at line 1974 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerReputationChange | ( | Player * | player, |
| uint32 | factionID, | ||
| int32 & | standing, | ||
| bool | incremental | ||
| ) |
Definition at line 1869 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerSave | ( | Player * | player | ) |
Definition at line 1954 of file ScriptMgr.cpp.
Definition at line 1924 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerTalentsReset | ( | Player * | player, |
| bool | involuntarily | ||
| ) |
Definition at line 1849 of file ScriptMgr.cpp.
| void ScriptMgr::OnPlayerTextEmote | ( | Player * | player, |
| uint32 | textEmote, | ||
| uint32 | emoteNum, | ||
| ObjectGuid | guid | ||
| ) |
Definition at line 1919 of file ScriptMgr.cpp.
Definition at line 1964 of file ScriptMgr.cpp.
Definition at line 1824 of file ScriptMgr.cpp.
| void ScriptMgr::OnQuestObjectiveProgress | ( | Player * | player, |
| Quest const * | quest, | ||
| uint32 | objectiveIndex, | ||
| uint16 | progress | ||
| ) |
Definition at line 1979 of file ScriptMgr.cpp.
Definition at line 1969 of file ScriptMgr.cpp.
| void ScriptMgr::OnReset | ( | Vehicle * | veh | ) |
| void ScriptMgr::OnShutdown | ( | ) |
Definition at line 1809 of file ScriptMgr.cpp.
| void ScriptMgr::OnShutdownCancel | ( | ) |
Definition at line 1335 of file ScriptMgr.cpp.
| void ScriptMgr::OnShutdownInitiate | ( | ShutdownExitCode | code, |
| ShutdownMask | mask | ||
| ) |
Definition at line 1330 of file ScriptMgr.cpp.
| void ScriptMgr::OnSocketClose | ( | std::shared_ptr< WorldSocket > const & | socket | ) |
Definition at line 1288 of file ScriptMgr.cpp.
| void ScriptMgr::OnSocketOpen | ( | std::shared_ptr< WorldSocket > const & | socket | ) |
Definition at line 1281 of file ScriptMgr.cpp.
| void ScriptMgr::OnStartup | ( | ) |
Definition at line 1804 of file ScriptMgr.cpp.
| void ScriptMgr::OnUninstall | ( | Vehicle * | veh | ) |
Definition at line 1452 of file ScriptMgr.cpp.
| void ScriptMgr::OnWeatherChange | ( | Weather * | weather, |
| WeatherState | state, | ||
| float | grade | ||
| ) |
| void ScriptMgr::OnWorldUpdate | ( | uint32 | diff | ) |
Definition at line 1340 of file ScriptMgr.cpp.
Definition at line 1360 of file ScriptMgr.cpp.
| void ScriptMgr::ReleaseScriptContext | ( | std::string const & | context | ) |
Releases all scripts associated with the given script context immediately. Requires a SwapScriptContext() call afterwards to finish the unloading.
Definition at line 1107 of file ScriptMgr.cpp.
| void ScriptMgr::SetScriptContext | ( | std::string const & | context | ) |
Set the current script context, which allows the ScriptMgr to accept new scripts in this context. Requires a SwapScriptContext() call afterwards to load the new scripts.
Definition at line 1090 of file ScriptMgr.cpp.
Here is the caller graph for this function:
|
inline |
Sets the script loader callback which is invoked to load scripts (Workaround for circular dependency game <-> scripts)
Definition at line 844 of file ScriptMgr.h.
| void ScriptMgr::SwapScriptContext | ( | bool | initialize = false | ) |
Executes all changed introduced by SetScriptContext and ReleaseScriptContext. It is possible to combine multiple SetScriptContext and ReleaseScriptContext calls for better performance (bulk changes).
Definition at line 1095 of file ScriptMgr.cpp.
| void ScriptMgr::Unload | ( | ) |
Definition at line 1127 of file ScriptMgr.cpp.
|
friend |
Definition at line 821 of file ScriptMgr.h.
|
private |
Definition at line 1085 of file ScriptMgr.h.
|
private |
Definition at line 1083 of file ScriptMgr.h.
|
private |
Definition at line 1081 of file ScriptMgr.h.