RAII helper class to register a network handler. More...
#include <multiplayer.hpp>
| Public Types | |
| using | handler = std::function< void(const config &)> | 
| Public Member Functions | |
| network_registrar (const handler &func) | |
| ~network_registrar () | |
| Private Attributes | |
| std::function< void()> | remove_handler {} | 
RAII helper class to register a network handler.
Definition at line 90 of file multiplayer.hpp.
| using mp::network_registrar::handler = std::function<void(const config&)> | 
Definition at line 93 of file multiplayer.hpp.
| mp::network_registrar::network_registrar | ( | const handler & | func | ) | 
Definition at line 871 of file multiplayer.cpp.
References remove_handler.
| mp::network_registrar::~network_registrar | ( | ) | 
Definition at line 878 of file multiplayer.cpp.
References remove_handler.
| 
 | private | 
Definition at line 99 of file multiplayer.hpp.
Referenced by network_registrar(), and ~network_registrar().