Michaël Veillet Guillem
Michaël Veillet Guillem
For the `Player.cpp` I think there are parts that can be optimized (the registry *cough cough*). But most of the code are event handling, so we can reduce it a...
```cpp #define _SEND_PACKET_DECLARATION(packet, debug) \ void Player::send##packet(const protocol::packet &data) \ { \ auto pck = protocol::create##packet(data); \ _cli->_sendData(*pck); \ LDEBUG(debug); \ } #define SEND_PACKET_DECLARATION_WITH_DEBUG(packet, debug) _SEND_PACKET_DECLARATION(packet, debug) #define SEND_PACKET_DECLARATION(packet) _SEND_PACKET_DECLARATION(packet,...