mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Build time improvement
This commit is contained in:
@@ -8,3 +8,4 @@
|
||||
#include "Opcodes.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Packets/AllPackets.h"
|
||||
|
||||
74
src/server/game/Server/Packets/AllPackets.h
Normal file
74
src/server/game/Server/Packets/AllPackets.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef AllPackets_h__
|
||||
#define AllPackets_h__
|
||||
|
||||
#include "AchievementPackets.h"
|
||||
#include "AuctionHousePackets.h"
|
||||
#include "AuthenticationPackets.h"
|
||||
#include "BankPackets.h"
|
||||
#include "BattlefieldPackets.h"
|
||||
#include "BattlegroundPackets.h"
|
||||
#include "BattlePetPackets.h"
|
||||
#include "BlackMarketPackets.h"
|
||||
#include "CalendarPackets.h"
|
||||
#include "ChannelPackets.h"
|
||||
#include "CharacterPackets.h"
|
||||
#include "ChatPackets.h"
|
||||
#include "ClientConfigPackets.h"
|
||||
#include "CombatLogPackets.h"
|
||||
#include "CombatPackets.h"
|
||||
#include "DuelPackets.h"
|
||||
#include "EquipmentSetPackets.h"
|
||||
#include "GameObjectPackets.h"
|
||||
#include "GarrisonPackets.h"
|
||||
#include "GuildFinderPackets.h"
|
||||
#include "GuildPackets.h"
|
||||
#include "InspectPackets.h"
|
||||
#include "InstancePackets.h"
|
||||
#include "ItemPackets.h"
|
||||
#include "LFGPackets.h"
|
||||
#include "LootPackets.h"
|
||||
#include "MailPackets.h"
|
||||
#include "MiscPackets.h"
|
||||
#include "MovementPackets.h"
|
||||
#include "NPCPackets.h"
|
||||
#include "PacketUtilities.h"
|
||||
#include "PartyPackets.h"
|
||||
#include "PetitionPackets.h"
|
||||
#include "QueryPackets.h"
|
||||
#include "QuestPackets.h"
|
||||
#include "ReferAFriendPackets.h"
|
||||
#include "ReputationPackets.h"
|
||||
#include "ScenePackets.h"
|
||||
#include "SocialPackets.h"
|
||||
#include "SpellPackets.h"
|
||||
#include "SystemPackets.h"
|
||||
#include "TalentPackets.h"
|
||||
#include "TaxiPackets.h"
|
||||
#include "TicketPackets.h"
|
||||
#include "TokenPackets.h"
|
||||
#include "TotemPackets.h"
|
||||
#include "ToyPackets.h"
|
||||
#include "TradePackets.h"
|
||||
#include "VehiclePackets.h"
|
||||
#include "VoidStoragePackets.h"
|
||||
#include "WhoPackets.h"
|
||||
#include "WorldStatePackets.h"
|
||||
|
||||
#endif // AllPackets_h__
|
||||
@@ -18,51 +18,7 @@
|
||||
|
||||
#include "Opcodes.h"
|
||||
#include "WorldSession.h"
|
||||
#include "Packets/AchievementPackets.h"
|
||||
#include "Packets/AuctionHousePackets.h"
|
||||
#include "Packets/BankPackets.h"
|
||||
#include "Packets/BattlefieldPackets.h"
|
||||
#include "Packets/BattlegroundPackets.h"
|
||||
#include "Packets/BattlePetPackets.h"
|
||||
#include "Packets/BlackMarketPackets.h"
|
||||
#include "Packets/CalendarPackets.h"
|
||||
#include "Packets/ChannelPackets.h"
|
||||
#include "Packets/CharacterPackets.h"
|
||||
#include "Packets/ChatPackets.h"
|
||||
#include "Packets/ClientConfigPackets.h"
|
||||
#include "Packets/CombatPackets.h"
|
||||
#include "Packets/DuelPackets.h"
|
||||
#include "Packets/EquipmentSetPackets.h"
|
||||
#include "Packets/GameObjectPackets.h"
|
||||
#include "Packets/GarrisonPackets.h"
|
||||
#include "Packets/GuildPackets.h"
|
||||
#include "Packets/GuildFinderPackets.h"
|
||||
#include "Packets/PartyPackets.h"
|
||||
#include "Packets/InspectPackets.h"
|
||||
#include "Packets/InstancePackets.h"
|
||||
#include "Packets/ItemPackets.h"
|
||||
#include "Packets/LootPackets.h"
|
||||
#include "Packets/MailPackets.h"
|
||||
#include "Packets/MiscPackets.h"
|
||||
#include "Packets/MovementPackets.h"
|
||||
#include "Packets/NPCPackets.h"
|
||||
#include "Packets/PetitionPackets.h"
|
||||
#include "Packets/QueryPackets.h"
|
||||
#include "Packets/QuestPackets.h"
|
||||
#include "Packets/ReferAFriendPackets.h"
|
||||
#include "Packets/ReputationPackets.h"
|
||||
#include "Packets/ScenePackets.h"
|
||||
#include "Packets/SocialPackets.h"
|
||||
#include "Packets/TalentPackets.h"
|
||||
#include "Packets/TaxiPackets.h"
|
||||
#include "Packets/TicketPackets.h"
|
||||
#include "Packets/TokenPackets.h"
|
||||
#include "Packets/TotemPackets.h"
|
||||
#include "Packets/ToyPackets.h"
|
||||
#include "Packets/TradePackets.h"
|
||||
#include "Packets/VehiclePackets.h"
|
||||
#include "Packets/VoidStoragePackets.h"
|
||||
#include "Packets/WhoPackets.h"
|
||||
#include "Packets/AllPackets.h"
|
||||
|
||||
template<class PacketClass, void(WorldSession::*HandlerFunction)(PacketClass&)>
|
||||
class PacketHandler : public ClientOpcodeHandler
|
||||
@@ -717,7 +673,7 @@ void OpcodeTable::Initialize()
|
||||
DEFINE_HANDLER(CMSG_SET_ACTIVE_MOVER, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, WorldPackets::Movement::SetActiveMover, &WorldSession::HandleSetActiveMoverOpcode);
|
||||
DEFINE_OPCODE_HANDLER_OLD(CMSG_SET_ACTIVE_VOICE_CHANNEL, STATUS_UNHANDLED, PROCESS_THREADUNSAFE, &WorldSession::HandleSetActiveVoiceChannel );
|
||||
DEFINE_HANDLER(CMSG_SET_ADVANCED_COMBAT_LOGGING, STATUS_LOGGEDIN, PROCESS_INPLACE, WorldPackets::ClientConfig::SetAdvancedCombatLogging, &WorldSession::HandleSetAdvancedCombatLogging);
|
||||
DEFINE_HANDLER(CMSG_SET_ASSISTANT_LEADER, STATUS_UNHANDLED, PROCESS_INPLACE, WorldPackets::Party::SetAssistantLeader, &WorldSession::HandleSetAssistantLeaderOpcode);
|
||||
DEFINE_HANDLER(CMSG_SET_ASSISTANT_LEADER, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, WorldPackets::Party::SetAssistantLeader, &WorldSession::HandleSetAssistantLeaderOpcode);
|
||||
DEFINE_HANDLER(CMSG_SET_BACKPACK_AUTOSORT_DISABLED, STATUS_UNHANDLED, PROCESS_INPLACE, WorldPackets::Null, &WorldSession::Handle_NULL);
|
||||
DEFINE_HANDLER(CMSG_SET_BANK_AUTOSORT_DISABLED, STATUS_UNHANDLED, PROCESS_INPLACE, WorldPackets::Null, &WorldSession::Handle_NULL);
|
||||
DEFINE_HANDLER(CMSG_SET_BANK_BAG_SLOT_FLAG, STATUS_UNHANDLED, PROCESS_INPLACE, WorldPackets::Null, &WorldSession::Handle_NULL);
|
||||
|
||||
Reference in New Issue
Block a user