How mod-playerbots/azerothcore-wotlk works
AzerothCore is a modular MMORPG server framework that recreates World of Warcraft 3.3.5a gameplay. At a high level, clients connect through the server applications, interact with the world through sessions and game systems, and rely on database-backed account, world, and character state. The graph preserves major gameplay domains and modular extension points, while separating the supporting common and persistence layers. Source excerpts are partial; edges are limited to relationships shown by the README or SOURCE INDEX references.
Main entry points: Main.cpp World Server · DatabaseEnv.h Database Pools · QueryHandler.cpp World Queries · WorldSession.h World Session
Components 20
Server Applications
- Auth Server
src/server/apps/authserver/Main.cpp - World Server
src/server/apps/worldserver/Main.cpp
Gameplay Runtime
- World Session
src/server/game/Server/WorldSession.h - Packet Protocol
src/server/game/Server/Protocol/Opcodes.h - Player Entity
src/server/game/Entities/Player/Player.h - Combat and Threat
src/server/game/Combat/ThreatManager.cpp - Maps and Grids
src/server/game/Maps/Map.h - World Queries
src/server/game/Handlers/QueryHandler.cpp - Quest Definitions
src/server/game/Quests/QuestDef.h
Persistence and Data
- Object Manager
src/server/game/Globals/ObjectMgr.h - Stored Loot
src/server/game/Loot/LootItemStorage.cpp - Character Storage
src/server/game/Entities/Player/PlayerStorage.cpp - Database Pools
src/server/database/Database/DatabaseEnv.h
Shared Infrastructure
- Common Services
src/common/Common.h - Logging
src/common/Logging/Log.h - Task Scheduler
src/common/Utilities/TaskScheduler.cpp
Extensions and Tools
- Script Manager
src/server/game/Scripting/ScriptMgr.h - Modules
modules - Database Import
src/tools/dbimport/Main.cpp
Other components
- Player
Connections 15
- Player → Auth Server: connects
- Player → World Server: plays through
- World Server → Maps and Grids: uses
src/server/apps/worldserver/Main.cpp - World Server → Database Pools: loads
src/server/apps/worldserver/Main.cpp - World Server → Modules: initializes
src/server/apps/worldserver/Main.cpp - World Server → Logging: configures
src/server/apps/worldserver/Main.cpp - World Session → Packet Protocol: dispatches
- World Queries → Object Manager: queries
src/server/game/Handlers/QueryHandler.cpp - World Queries → World Session: sends packets
src/server/game/Handlers/QueryHandler.cpp - Character Storage → Database Pools: reads and writes
src/server/game/Entities/Player/PlayerStorage.cpp - Stored Loot → Database Pools: reads and writes
src/server/game/Loot/LootItemStorage.cpp - World Server → Database Import: uses updates from
- World Server → Task Scheduler: uses
- Combat and Threat → Player Entity: uses
src/server/game/Combat/ThreatManager.cpp - Player Entity → Object Manager: uses
src/server/game/Entities/Player/Player.h