mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-05 00:33:51 +00:00
refactor: consolidate buildItemLink into game_utils.hpp
Three identical copies (game_handler.cpp, spell_handler.cpp, quest_handler.cpp) plus two forward declarations (inventory_handler.cpp, social_handler.cpp) replaced with a single inline definition in game_utils.hpp. All affected files already include this header, so quality color table changes now propagate from one source of truth.
This commit is contained in:
parent
0aff4b155c
commit
dc500fede9
5 changed files with 20 additions and 43 deletions
|
|
@ -17,8 +17,6 @@
|
|||
namespace wowee {
|
||||
namespace game {
|
||||
|
||||
// Free function defined in game_handler.cpp
|
||||
std::string buildItemLink(uint32_t itemId, uint32_t quality, const std::string& name);
|
||||
|
||||
static bool packetHasRemaining(const network::Packet& packet, size_t need) {
|
||||
const size_t size = packet.getSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue