Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions src/game/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ set (game_SRCS
UnitAuraProcHandler.cpp
Weather.cpp
World.cpp
WorldSession.cpp
AI/BasicAI.cpp
AI/CreatureAI.cpp
AI/CreatureAIRegistry.cpp
Expand Down Expand Up @@ -196,11 +195,10 @@ set (game_SRCS
PlayerBots/BattleBotWaypoints.cpp
PlayerBots/PlayerBotAI.cpp
PlayerBots/PlayerBotMgr.cpp
Protocol/Opcodes.cpp
Protocol/WorldSocket.h
Protocol/WorldSocket.cpp
Protocol/WorldSocketMgr.h
Protocol/WorldSocketMgr.cpp
Server/Protocol/Opcodes.cpp
Server/WorldSession.cpp
Server/WorldSocket.cpp
Server/WorldSocketMgr.cpp
Spells/Spell.cpp
Spells/SpellAuras.cpp
Spells/SpellEffects.cpp
Expand Down Expand Up @@ -259,7 +257,6 @@ set (game_SRCS
UnitEvents.h
Weather.h
World.h
WorldSession.h
WorldStates.h
AI/BasicAI.h
AI/CreatureAI.h
Expand Down Expand Up @@ -421,7 +418,11 @@ set (game_SRCS
PlayerBots/BattleBotWaypoints.h
PlayerBots/PlayerBotAI.h
PlayerBots/PlayerBotMgr.h
Protocol/Opcodes.h
Server/Protocol/Opcodes.h
Server/WorldPacket.h
Server/WorldSession.h
Server/WorldSocket.h
Server/WorldSocketMgr.h
Spells/Spell.h
Spells/SpellAuraDefines.h
Spells/SpellAuras.h
Expand Down Expand Up @@ -504,7 +505,8 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/OutdoorPvP
${CMAKE_CURRENT_SOURCE_DIR}/PacketBroadcast
${CMAKE_CURRENT_SOURCE_DIR}/PlayerBots
${CMAKE_CURRENT_SOURCE_DIR}/Protocol
${CMAKE_CURRENT_SOURCE_DIR}/Server
${CMAKE_CURRENT_SOURCE_DIR}/Server/Protocol
${CMAKE_CURRENT_SOURCE_DIR}/Spells
${CMAKE_CURRENT_SOURCE_DIR}/Threat
${CMAKE_CURRENT_SOURCE_DIR}/Transports
Expand Down Expand Up @@ -601,15 +603,14 @@ if((${CMAKE_VERSION} VERSION_LESS "3.16") OR USE_PCH_OLD)
else()
if(USE_PCH)
target_precompile_headers(game PRIVATE
Protocol/WorldSocket.h
Server/WorldSocket.h
../shared/Common.h

Maps/MapManager.h
../shared/Log.h
ObjectAccessor.h
ObjectGuid.h
Database/SQLStorages.h
Protocol/Opcodes.h
Server/Protocol/Opcodes.h
SharedDefines.h
Guild/GuildMgr.h
ObjectMgr.h
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 4 additions & 8 deletions src/game/WorldSession.cpp → src/game/Server/WorldSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

/** \file
\ingroup u2w
*/

#include "WorldSocket.h"
#include "Common.h"
#include "Database/DatabaseEnv.h"
Expand Down Expand Up @@ -203,7 +199,7 @@ void WorldSession::SendMovementPacket(WorldPacket const* packet)
SendPacketImpl(packet);
return;
}

std::lock_guard<std::mutex> guard(m_movementPacketCompressorMutex);
if (m_movementPacketCompressor.CanAddPacket(*packet))
m_movementPacketCompressor.AddPacket(*packet);
Expand Down Expand Up @@ -457,7 +453,7 @@ bool WorldSession::Update(PacketFilter& updater)
m_movePacketsSentThisInterval = 0;
}
#endif

if (sWorld.getConfig(CONFIG_BOOL_LIMIT_PLAY_TIME) &&
GetPlayer() && GetPlayer()->IsInWorld())
CheckPlayedTimeLimit(currTime);
Expand Down Expand Up @@ -671,7 +667,7 @@ void WorldSession::LogoutPlayer(bool Save)
_player->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_LEAVE_WORLD_CANCELS);

}


if (_player->IsInLFG())
sWorld.GetLFGQueue().GetMessager().AddMessage([playerGuid = _player->GetObjectGuid()](LFGQueue* queue)
Expand Down Expand Up @@ -1229,7 +1225,7 @@ void WorldSession::ProcessAnticheatAction(char const* detector, char const* reas

sWorld.SendGMText(LANG_GM_ANNOUNCE_COLOR, detector, oss.str().c_str());
}

sLog.Player(this, LOG_ANTICHEAT, detector, LOG_LVL_MINIMAL, "[%s] Player %s, Cheat %s, Penalty: %s",
detector, playerDesc.c_str(), reason, action);
}
Expand Down
6 changes: 3 additions & 3 deletions src/game/WorldSession.h → src/game/Server/WorldSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class WorldSession
bool CheckMailBox(ObjectGuid guid);
void SendMailResult(uint32 mailId, MailResponseType mailAction, MailResponseResult mailError, uint32 equipError = 0, uint32 item_guid = 0, uint32 item_count = 0);
void SendNewMail();

// Trade
void SendTradeStatus(TradeStatus status);
void SendUpdateTrade(bool trader_state = true);
Expand Down Expand Up @@ -770,7 +770,7 @@ class WorldSession
void HandleAreaSpiritHealerQueryOpcode(WorldPacket& recv_data);
void HandleAreaSpiritHealerQueueOpcode(WorldPacket& recv_data);
void HandleSelfResOpcode(WorldPacket& recv_data);

private:
// private trade method
void MoveItems(Item* myItems[], Item* hisItems[]);
Expand Down Expand Up @@ -840,7 +840,7 @@ class WorldSession
uint32 m_movePacketsSentThisInterval = 0;
time_t m_movePacketTrackingIntervalStart = 0;
#endif

// Clustering system (TODO remove this)
public:
MasterPlayer* GetMasterPlayer() const { return m_masterPlayer; }
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

/** \file WorldSocketMgr.cpp
* \ingroup u2w
* \author Derex <derex101@gmail.com>
*/

#include "WorldSocket.h"
#include "WorldSocketMgr.h"
#include "WorldSocket.h"
#include "Log.h"
#include "Policies/SingletonImp.h"
#include "IO/Networking/AsyncSocketAcceptor.h"
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/mangosd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/game/Objects
${CMAKE_SOURCE_DIR}/src/game/OutdoorPvP
${CMAKE_SOURCE_DIR}/src/game/PlayerBots
${CMAKE_SOURCE_DIR}/src/game/Protocol
${CMAKE_SOURCE_DIR}/src/game/Server
${CMAKE_SOURCE_DIR}/src/game/Server/Protocol
${CMAKE_SOURCE_DIR}/src/game/Spells
${CMAKE_SOURCE_DIR}/src/game/Threat
${CMAKE_SOURCE_DIR}/src/game/Transports
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ include_directories(
${CMAKE_SOURCE_DIR}/src/game/Objects
${CMAKE_SOURCE_DIR}/src/game/OutdoorPvP
${CMAKE_SOURCE_DIR}/src/game/PlayerBots
${CMAKE_SOURCE_DIR}/src/game/Protocol
${CMAKE_SOURCE_DIR}/src/game/Server
${CMAKE_SOURCE_DIR}/src/game/Server/Protocol
${CMAKE_SOURCE_DIR}/src/game/Spells
${CMAKE_SOURCE_DIR}/src/game/Threat
${CMAKE_SOURCE_DIR}/src/game/Transports
Expand Down
1 change: 0 additions & 1 deletion src/shared/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ set (shared_SRCS
Timer.h
Util.h
WheatyExceptionReport.h
WorldPacket.h
Config/Config.h
Config/ConfigEnv.h
Crypto/BigNumber.h
Expand Down