mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/Misc: Include cleanup, 2023 edition
This commit is contained in:
@@ -1194,6 +1194,11 @@ ScriptObject::~ScriptObject()
|
||||
sScriptMgr->DecreaseScriptCount();
|
||||
}
|
||||
|
||||
std::string const& ScriptObject::GetName() const
|
||||
{
|
||||
return _name;
|
||||
}
|
||||
|
||||
ScriptMgr::ScriptMgr()
|
||||
: _scriptCount(0), _scriptIdUpdated(false), _script_loader_callback(nullptr)
|
||||
{
|
||||
@@ -2336,6 +2341,16 @@ SpellScriptLoader::SpellScriptLoader(char const* name)
|
||||
ScriptRegistry<SpellScriptLoader>::Instance()->AddScript(this);
|
||||
}
|
||||
|
||||
SpellScript* SpellScriptLoader::GetSpellScript() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
AuraScript* SpellScriptLoader::GetAuraScript() const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ServerScript::ServerScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2344,6 +2359,30 @@ ServerScript::ServerScript(char const* name)
|
||||
|
||||
ServerScript::~ServerScript() = default;
|
||||
|
||||
void ServerScript::OnNetworkStart()
|
||||
{
|
||||
}
|
||||
|
||||
void ServerScript::OnNetworkStop()
|
||||
{
|
||||
}
|
||||
|
||||
void ServerScript::OnSocketOpen(std::shared_ptr<WorldSocket> /*socket*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ServerScript::OnSocketClose(std::shared_ptr<WorldSocket> /*socket*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ServerScript::OnPacketSend(WorldSession* /*session*/, WorldPacket& /*packet*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ServerScript::OnPacketReceive(WorldSession* /*session*/, WorldPacket& /*packet*/)
|
||||
{
|
||||
}
|
||||
|
||||
WorldScript::WorldScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2352,6 +2391,38 @@ WorldScript::WorldScript(char const* name)
|
||||
|
||||
WorldScript::~WorldScript() = default;
|
||||
|
||||
void WorldScript::OnOpenStateChange(bool /*open*/)
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnConfigLoad(bool /*reload*/)
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnMotdChange(std::string& /*newMotd*/)
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnShutdownInitiate(ShutdownExitCode /*code*/, ShutdownMask /*mask*/)
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnShutdownCancel()
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnUpdate(uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnStartup()
|
||||
{
|
||||
}
|
||||
|
||||
void WorldScript::OnShutdown()
|
||||
{
|
||||
}
|
||||
|
||||
FormulaScript::FormulaScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2360,16 +2431,76 @@ FormulaScript::FormulaScript(char const* name)
|
||||
|
||||
FormulaScript::~FormulaScript() = default;
|
||||
|
||||
UnitScript::UnitScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
void FormulaScript::OnHonorCalculation(float& /*honor*/, uint8 /*level*/, float /*multiplier*/)
|
||||
{
|
||||
ScriptRegistry<UnitScript>::Instance()->AddScript(this);
|
||||
}
|
||||
|
||||
UnitScript::~UnitScript() = default;
|
||||
void FormulaScript::OnGrayLevelCalculation(uint8& /*grayLevel*/, uint8 /*playerLevel*/)
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaScript::OnColorCodeCalculation(XPColorChar& /*color*/, uint8 /*playerLevel*/, uint8 /*mobLevel*/)
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaScript::OnZeroDifferenceCalculation(uint8& /*diff*/, uint8 /*playerLevel*/)
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaScript::OnBaseGainCalculation(uint32& /*gain*/, uint8 /*playerLevel*/, uint8 /*mobLevel*/)
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaScript::OnGainCalculation(uint32& /*gain*/, Player* /*player*/, Unit* /*unit*/)
|
||||
{
|
||||
}
|
||||
|
||||
void FormulaScript::OnGroupRateCalculation(float& /*rate*/, uint32 /*count*/, bool /*isRaid*/)
|
||||
{
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
MapScript<TMap>::MapScript(MapEntry const* mapEntry) : _mapEntry(mapEntry)
|
||||
{
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
MapEntry const* MapScript<TMap>::GetEntry() const
|
||||
{
|
||||
return _mapEntry;
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
void MapScript<TMap>::OnCreate(TMap* /*map*/)
|
||||
{
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
void MapScript<TMap>::OnDestroy(TMap* /*map*/)
|
||||
{
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
void MapScript<TMap>::OnPlayerEnter(TMap* /*map*/, Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
void MapScript<TMap>::OnPlayerLeave(TMap* /*map*/, Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
template <class TMap>
|
||||
void MapScript<TMap>::OnUpdate(TMap* /*map*/, uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
|
||||
template class TC_GAME_API MapScript<Map>;
|
||||
template class TC_GAME_API MapScript<InstanceMap>;
|
||||
template class TC_GAME_API MapScript<BattlegroundMap>;
|
||||
|
||||
WorldMapScript::WorldMapScript(char const* name, uint32 mapId)
|
||||
: ScriptObject(name), MapScript<Map>(sMapStore.LookupEntry(mapId))
|
||||
: ScriptObject(name), MapScript(sMapStore.LookupEntry(mapId))
|
||||
{
|
||||
if (!GetEntry())
|
||||
TC_LOG_ERROR("scripts", "Invalid WorldMapScript for %u; no such map ID.", mapId);
|
||||
@@ -2383,7 +2514,7 @@ WorldMapScript::WorldMapScript(char const* name, uint32 mapId)
|
||||
WorldMapScript::~WorldMapScript() = default;
|
||||
|
||||
InstanceMapScript::InstanceMapScript(char const* name, uint32 mapId)
|
||||
: ScriptObject(name), MapScript<InstanceMap>(sMapStore.LookupEntry(mapId))
|
||||
: ScriptObject(name), MapScript(sMapStore.LookupEntry(mapId))
|
||||
{
|
||||
if (!GetEntry())
|
||||
TC_LOG_ERROR("scripts", "Invalid InstanceMapScript for %u; no such map ID.", mapId);
|
||||
@@ -2396,8 +2527,13 @@ InstanceMapScript::InstanceMapScript(char const* name, uint32 mapId)
|
||||
|
||||
InstanceMapScript::~InstanceMapScript() = default;
|
||||
|
||||
InstanceScript* InstanceMapScript::GetInstanceScript(InstanceMap* /*map*/) const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
BattlegroundMapScript::BattlegroundMapScript(char const* name, uint32 mapId)
|
||||
: ScriptObject(name), MapScript<BattlegroundMap>(sMapStore.LookupEntry(mapId))
|
||||
: ScriptObject(name), MapScript(sMapStore.LookupEntry(mapId))
|
||||
{
|
||||
if (!GetEntry())
|
||||
TC_LOG_ERROR("scripts", "Invalid BattlegroundMapScript for %u; no such map ID.", mapId);
|
||||
@@ -2418,6 +2554,59 @@ ItemScript::ItemScript(char const* name)
|
||||
|
||||
ItemScript::~ItemScript() = default;
|
||||
|
||||
bool ItemScript::OnQuestAccept(Player* /*player*/, Item* /*item*/, Quest const* /*quest*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ItemScript::OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/, ObjectGuid /*castId*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ItemScript::OnExpire(Player* /*player*/, ItemTemplate const* /*proto*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ItemScript::OnRemove(Player* /*player*/, Item* /*item*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ItemScript::OnCastItemCombatSpell(Player* /*player*/, Unit* /*victim*/, SpellInfo const* /*spellInfo*/, Item* /*item*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
UnitScript::UnitScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
ScriptRegistry<UnitScript>::Instance()->AddScript(this);
|
||||
}
|
||||
|
||||
UnitScript::~UnitScript() = default;
|
||||
|
||||
void UnitScript::OnHeal(Unit* /*healer*/, Unit* /*reciever*/, uint32& /*gain*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::OnDamage(Unit* /*attacker*/, Unit* /*victim*/, uint32& /*damage*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::ModifyPeriodicDamageAurasTick(Unit* /*target*/, Unit* /*attacker*/, uint32& /*damage*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::ModifyMeleeDamage(Unit* /*target*/, Unit* /*attacker*/, uint32& /*damage*/)
|
||||
{
|
||||
}
|
||||
|
||||
void UnitScript::ModifySpellDamageTaken(Unit* /*target*/, Unit* /*attacker*/, int32& /*damage*/, SpellInfo const* /*spellInfo*/)
|
||||
{
|
||||
}
|
||||
|
||||
CreatureScript::CreatureScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2442,6 +2631,16 @@ AreaTriggerScript::AreaTriggerScript(char const* name)
|
||||
|
||||
AreaTriggerScript::~AreaTriggerScript() = default;
|
||||
|
||||
bool AreaTriggerScript::OnTrigger(Player* /*player*/, AreaTriggerEntry const* /*trigger*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AreaTriggerScript::OnExit(Player* /*player*/, AreaTriggerEntry const* /*trigger*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
OnlyOnceAreaTriggerScript::~OnlyOnceAreaTriggerScript() = default;
|
||||
|
||||
bool OnlyOnceAreaTriggerScript::OnTrigger(Player* player, AreaTriggerEntry const* trigger)
|
||||
@@ -2456,7 +2655,7 @@ bool OnlyOnceAreaTriggerScript::OnTrigger(Player* player, AreaTriggerEntry const
|
||||
|
||||
return true;
|
||||
}
|
||||
void OnlyOnceAreaTriggerScript::ResetAreaTriggerDone(InstanceScript* script, uint32 triggerId) { script->ResetAreaTriggerDone(triggerId); }
|
||||
void OnlyOnceAreaTriggerScript::ResetAreaTriggerDone(InstanceScript* instance, uint32 triggerId) { instance->ResetAreaTriggerDone(triggerId); }
|
||||
void OnlyOnceAreaTriggerScript::ResetAreaTriggerDone(Player const* player, AreaTriggerEntry const* trigger) { if (InstanceScript* instance = player->GetInstanceScript()) ResetAreaTriggerDone(instance, trigger->ID); }
|
||||
|
||||
BattlefieldScript::BattlefieldScript(char const* name)
|
||||
@@ -2499,6 +2698,14 @@ WeatherScript::WeatherScript(char const* name)
|
||||
|
||||
WeatherScript::~WeatherScript() = default;
|
||||
|
||||
void WeatherScript::OnChange(Weather* /*weather*/, WeatherState /*state*/, float /*grade*/)
|
||||
{
|
||||
}
|
||||
|
||||
void WeatherScript::OnUpdate(Weather* /*weather*/, uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
|
||||
AuctionHouseScript::AuctionHouseScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2507,6 +2714,22 @@ AuctionHouseScript::AuctionHouseScript(char const* name)
|
||||
|
||||
AuctionHouseScript::~AuctionHouseScript() = default;
|
||||
|
||||
void AuctionHouseScript::OnAuctionAdd(AuctionHouseObject* /*ah*/, AuctionPosting* /*auction*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AuctionHouseScript::OnAuctionRemove(AuctionHouseObject* /*ah*/, AuctionPosting* /*auction*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AuctionHouseScript::OnAuctionSuccessful(AuctionHouseObject* /*ah*/, AuctionPosting* /*auction*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AuctionHouseScript::OnAuctionExpire(AuctionHouseObject* /*ah*/, AuctionPosting* /*auction*/)
|
||||
{
|
||||
}
|
||||
|
||||
ConditionScript::ConditionScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2515,6 +2738,11 @@ ConditionScript::ConditionScript(char const* name)
|
||||
|
||||
ConditionScript::~ConditionScript() = default;
|
||||
|
||||
bool ConditionScript::OnConditionCheck(Condition const* /*condition*/, ConditionSourceInfo& /*sourceInfo*/)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
VehicleScript::VehicleScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2523,6 +2751,30 @@ VehicleScript::VehicleScript(char const* name)
|
||||
|
||||
VehicleScript::~VehicleScript() = default;
|
||||
|
||||
void VehicleScript::OnInstall(Vehicle* /*veh*/)
|
||||
{
|
||||
}
|
||||
|
||||
void VehicleScript::OnUninstall(Vehicle* /*veh*/)
|
||||
{
|
||||
}
|
||||
|
||||
void VehicleScript::OnReset(Vehicle* /*veh*/)
|
||||
{
|
||||
}
|
||||
|
||||
void VehicleScript::OnInstallAccessory(Vehicle* /*veh*/, Creature* /*accessory*/)
|
||||
{
|
||||
}
|
||||
|
||||
void VehicleScript::OnAddPassenger(Vehicle* /*veh*/, Unit* /*passenger*/, int8 /*seatId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void VehicleScript::OnRemovePassenger(Vehicle* /*veh*/, Unit* /*passenger*/)
|
||||
{
|
||||
}
|
||||
|
||||
DynamicObjectScript::DynamicObjectScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2531,6 +2783,10 @@ DynamicObjectScript::DynamicObjectScript(char const* name)
|
||||
|
||||
DynamicObjectScript::~DynamicObjectScript() = default;
|
||||
|
||||
void DynamicObjectScript::OnUpdate(DynamicObject* /*obj*/, uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
|
||||
TransportScript::TransportScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2539,6 +2795,26 @@ TransportScript::TransportScript(char const* name)
|
||||
|
||||
TransportScript::~TransportScript() = default;
|
||||
|
||||
void TransportScript::OnAddPassenger(Transport* /*transport*/, Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void TransportScript::OnAddCreaturePassenger(Transport* /*transport*/, Creature* /*creature*/)
|
||||
{
|
||||
}
|
||||
|
||||
void TransportScript::OnRemovePassenger(Transport* /*transport*/, Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void TransportScript::OnRelocate(Transport* /*transport*/, uint32 /*mapId*/, float /*x*/, float /*y*/, float /*z*/)
|
||||
{
|
||||
}
|
||||
|
||||
void TransportScript::OnUpdate(Transport* /*transport*/, uint32 /*diff*/)
|
||||
{
|
||||
}
|
||||
|
||||
AchievementScript::AchievementScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2547,6 +2823,10 @@ AchievementScript::AchievementScript(char const* name)
|
||||
|
||||
AchievementScript::~AchievementScript() = default;
|
||||
|
||||
void AchievementScript::OnCompleted(Player* /*player*/, AchievementEntry const* /*achievement*/)
|
||||
{
|
||||
}
|
||||
|
||||
AchievementCriteriaScript::AchievementCriteriaScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2563,6 +2843,142 @@ PlayerScript::PlayerScript(char const* name)
|
||||
|
||||
PlayerScript::~PlayerScript() = default;
|
||||
|
||||
void PlayerScript::OnPVPKill(Player* /*killer*/, Player* /*killed*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnCreatureKill(Player* /*killer*/, Creature* /*killed*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnPlayerKilledByCreature(Creature* /*killer*/, Player* /*killed*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnLevelChanged(Player* /*player*/, uint8 /*oldLevel*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnFreeTalentPointsChanged(Player* /*player*/, uint32 /*points*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnTalentsReset(Player* /*player*/, bool /*noCost*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnMoneyChanged(Player* /*player*/, int64& /*amount*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnMoneyLimit(Player* /*player*/, int64 /*amount*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnGiveXP(Player* /*player*/, uint32& /*amount*/, Unit* /*victim*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnReputationChange(Player* /*player*/, uint32 /*factionId*/, int32& /*standing*/, bool /*incremental*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnDuelRequest(Player* /*target*/, Player* /*challenger*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnDuelStart(Player* /*player1*/, Player* /*player2*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnDuelEnd(Player* /*winner*/, Player* /*loser*/, DuelCompleteType /*type*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Player* /*receiver*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Group* /*group*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Guild* /*guild*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Channel* /*channel*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnClearEmote(Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnTextEmote(Player* /*player*/, uint32 /*textEmote*/, uint32 /*emoteNum*/, ObjectGuid /*guid*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnSpellCast(Player* /*player*/, Spell* /*spell*/, bool /*skipCheck*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnLogin(Player* /*player*/, bool /*firstLogin*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnLogout(Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnCreate(Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnDelete(ObjectGuid /*guid*/, uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnFailedDelete(ObjectGuid /*guid*/, uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnSave(Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnBindToInstance(Player* /*player*/, Difficulty /*difficulty*/, uint32 /*mapId*/, bool /*permanent*/, uint8 /*extendState*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnUpdateZone(Player* /*player*/, uint32 /*newZone*/, uint32 /*newArea*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnMapChanged(Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnQuestStatusChange(Player* /*player*/, uint32 /*questId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnPlayerRepop(Player* /*player*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnMovieComplete(Player* /*player*/, uint32 /*movieId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void PlayerScript::OnPlayerChoiceResponse(Player* /*player*/, uint32 /*choiceId*/, uint32 /*responseId*/)
|
||||
{
|
||||
}
|
||||
|
||||
AccountScript::AccountScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2571,6 +2987,30 @@ AccountScript::AccountScript(char const* name)
|
||||
|
||||
AccountScript::~AccountScript() = default;
|
||||
|
||||
void AccountScript::OnAccountLogin(uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AccountScript::OnFailedAccountLogin(uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AccountScript::OnEmailChange(uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AccountScript::OnFailedEmailChange(uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AccountScript::OnPasswordChange(uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void AccountScript::OnFailedPasswordChange(uint32 /*accountId*/)
|
||||
{
|
||||
}
|
||||
|
||||
GuildScript::GuildScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2579,6 +3019,52 @@ GuildScript::GuildScript(char const* name)
|
||||
|
||||
GuildScript::~GuildScript() = default;
|
||||
|
||||
void GuildScript::OnAddMember(Guild* /*guild*/, Player* /*player*/, uint8 /*plRank*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnRemoveMember(Guild* /*guild*/, ObjectGuid /*guid*/, bool /*isDisbanding*/, bool /*isKicked*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnMOTDChanged(Guild* /*guild*/, std::string const& /*newMotd*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnInfoChanged(Guild* /*guild*/, std::string const& /*newInfo*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnCreate(Guild* /*guild*/, Player* /*leader*/, std::string const& /*name*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnDisband(Guild* /*guild*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnMemberWitdrawMoney(Guild* /*guild*/, Player* /*player*/, uint64& /*amount*/, bool /*isRepair*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnMemberDepositMoney(Guild* /*guild*/, Player* /*player*/, uint64& /*amount*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnItemMove(Guild* /*guild*/, Player* /*player*/, Item* /*pItem*/, bool /*isSrcBank*/, uint8 /*srcContainer*/, uint8 /*srcSlotId*/, bool /*isDestBank*/,
|
||||
uint8 /*destContainer*/, uint8 /*destSlotId*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnEvent(Guild* /*guild*/, uint8 /*eventType*/, ObjectGuid::LowType /*playerGuid1*/, ObjectGuid::LowType /*playerGuid2*/, uint8 /*newRank*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GuildScript::OnBankEvent(Guild* /*guild*/, uint8 /*eventType*/, uint8 /*tabId*/, ObjectGuid::LowType /*playerGuid*/, uint64 /*itemOrMoney*/, uint16 /*itemStackCount*/,
|
||||
uint8 /*destTabId*/)
|
||||
{
|
||||
}
|
||||
|
||||
GroupScript::GroupScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2587,6 +3073,26 @@ GroupScript::GroupScript(char const* name)
|
||||
|
||||
GroupScript::~GroupScript() = default;
|
||||
|
||||
void GroupScript::OnAddMember(Group* /*group*/, ObjectGuid /*guid*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GroupScript::OnInviteMember(Group* /*group*/, ObjectGuid /*guid*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GroupScript::OnRemoveMember(Group* /*group*/, ObjectGuid /*guid*/, RemoveMethod /*method*/, ObjectGuid /*kicker*/, char const* /*reason*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GroupScript::OnChangeLeader(Group* /*group*/, ObjectGuid /*newLeaderGuid*/, ObjectGuid /*oldLeaderGuid*/)
|
||||
{
|
||||
}
|
||||
|
||||
void GroupScript::OnDisband(Group* /*group*/)
|
||||
{
|
||||
}
|
||||
|
||||
AreaTriggerEntityScript::AreaTriggerEntityScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2595,6 +3101,11 @@ AreaTriggerEntityScript::AreaTriggerEntityScript(char const* name)
|
||||
|
||||
AreaTriggerEntityScript::~AreaTriggerEntityScript() = default;
|
||||
|
||||
AreaTriggerAI* AreaTriggerEntityScript::GetAI(AreaTrigger* /*at*/) const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ConversationScript::ConversationScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2603,6 +3114,14 @@ ConversationScript::ConversationScript(char const* name)
|
||||
|
||||
ConversationScript::~ConversationScript() = default;
|
||||
|
||||
void ConversationScript::OnConversationCreate(Conversation* /*conversation*/, Unit* /*creator*/)
|
||||
{
|
||||
}
|
||||
|
||||
void ConversationScript::OnConversationLineStarted(Conversation* /*conversation*/, uint32 /*lineId*/, Player* /*sender*/)
|
||||
{
|
||||
}
|
||||
|
||||
SceneScript::SceneScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2611,6 +3130,22 @@ SceneScript::SceneScript(char const* name)
|
||||
|
||||
SceneScript::~SceneScript() = default;
|
||||
|
||||
void SceneScript::OnSceneStart(Player* /*player*/, uint32 /*sceneInstanceID*/, SceneTemplate const* /*sceneTemplate*/)
|
||||
{
|
||||
}
|
||||
|
||||
void SceneScript::OnSceneTriggerEvent(Player* /*player*/, uint32 /*sceneInstanceID*/, SceneTemplate const* /*sceneTemplate*/, std::string const& /*triggerName*/)
|
||||
{
|
||||
}
|
||||
|
||||
void SceneScript::OnSceneCancel(Player* /*player*/, uint32 /*sceneInstanceID*/, SceneTemplate const* /*sceneTemplate*/)
|
||||
{
|
||||
}
|
||||
|
||||
void SceneScript::OnSceneComplete(Player* /*player*/, uint32 /*sceneInstanceID*/, SceneTemplate const* /*sceneTemplate*/)
|
||||
{
|
||||
}
|
||||
|
||||
QuestScript::QuestScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2619,6 +3154,18 @@ QuestScript::QuestScript(char const* name)
|
||||
|
||||
QuestScript::~QuestScript() = default;
|
||||
|
||||
void QuestScript::OnQuestStatusChange(Player* /*player*/, Quest const* /*quest*/, QuestStatus /*oldStatus*/, QuestStatus /*newStatus*/)
|
||||
{
|
||||
}
|
||||
|
||||
void QuestScript::OnAcknowledgeAutoAccept(Player* /*player*/, Quest const* /*quest*/)
|
||||
{
|
||||
}
|
||||
|
||||
void QuestScript::OnQuestObjectiveChange(Player* /*player*/, Quest const* /*quest*/, QuestObjective const& /*objective*/, int32 /*oldAmount*/, int32 /*newAmount*/)
|
||||
{
|
||||
}
|
||||
|
||||
WorldStateScript::WorldStateScript(char const* name)
|
||||
: ScriptObject(name)
|
||||
{
|
||||
@@ -2627,6 +3174,10 @@ WorldStateScript::WorldStateScript(char const* name)
|
||||
|
||||
WorldStateScript::~WorldStateScript() = default;
|
||||
|
||||
void WorldStateScript::OnValueChange(int32 /*worldStateId*/, int32 /*oldValue*/, int32 /*newValue*/, Map const* /*map*/)
|
||||
{
|
||||
}
|
||||
|
||||
// Specialize for each script type class like so:
|
||||
template class TC_GAME_API ScriptRegistry<SpellScriptLoader>;
|
||||
template class TC_GAME_API ScriptRegistry<ServerScript>;
|
||||
|
||||
Reference in New Issue
Block a user