7 #include "../clib/clib_endian.h" 8 #include "../clib/logfacility.h" 9 #include "../clib/passert.h" 10 #include "../clib/rawtypes.h" 28 POLLOG.Format(
"{} tried to use a menu without being in the game.\n" ) << client->
acct->
name();
33 Menu* active_menu =
nullptr;
39 if ( active_menu ==
nullptr )
41 POLLOG.Format(
"{}/{} tried to use a menu, but none was active.\n" )
47 if ( active_menu->
menu_id != menu_id )
49 INFO_PRINT <<
"Client tried to use a menu he wasn't entitled to\n";
64 if ( choice == 0 || choice > active_menu->
menuitems_.size() )
66 INFO_PRINT <<
"Client menu choice out of range\n";
weak_ptr< Core::Menu > menu
const char * name() const
bool send_menu(Network::Client *client, Menu *menu)
void handle_menu_selection(Network::Client *client, PKTIN_7D *msg)
void(* on_menu_selection)(Network::Client *client, Core::MenuItem *mi, Core::PKTIN_7D *msg)
virtual std::string name() const
#define passert_paranoid(exp)