Add std::unique_ptr<sf::Packet> objects to a queue instead of functions, makes things easier to read, and avoids headaches while checking the lifetime of the concerned objects.
Add std::unique_ptr<sf::Packet> objects to a queue instead of functions, makes things easier to read, and avoids headaches while checking the lifetime of the concerned objects.