35 void game_created(
const std::string& scenario,
const std::string& name)
46 const std::string
message =
VGETTEXT(
"A game ($name|, $scenario|) has been created", {{
"name", name}, {
"scenario", scenario}});
53 if(is_lobby && !
prefs::get().player_joins_lobby()) {
68 if(is_lobby && !
prefs::get().player_leaves_lobby()) {
81 void public_message(
bool is_lobby,
const std::string& sender,
const std::string& message)
83 if(is_lobby && !
prefs::get().public_message_lobby()) {
96 void friend_message(
bool is_lobby,
const std::string& sender,
const std::string& message)
98 if(is_lobby && !
prefs::get().friend_message_lobby()) {
111 void private_message(
bool is_lobby,
const std::string& sender,
const std::string& message)
113 if(is_lobby && !
prefs::get().private_message_lobby()) {
126 void server_message(
bool is_lobby,
const std::string& sender,
const std::string& message)
128 if(is_lobby && !
prefs::get().server_message_lobby()) {
171 player[
"name"] = player_name;
static std::string _(const char *str)
void send(const std::string &, const std::string &, type)
Displays a desktop notification message, from owner, of type t.
std::string public_message
std::string private_message
std::string player_leaves
std::string server_message
std::string friend_message
std::string ready_for_start
std::string game_has_begun
static bool ui_sound_on()
This namespace provides handlers which play the sounds / notifications for various mp server events,...
void turn_changed(const std::string &player_name)
void public_message(bool is_lobby, const std::string &sender, const std::string &message)
void game_created(const std::string &scenario, const std::string &name)
void private_message(bool is_lobby, const std::string &sender, const std::string &message)
void player_joins(bool is_lobby)
void friend_message(bool is_lobby, const std::string &sender, const std::string &message)
void server_message(bool is_lobby, const std::string &sender, const std::string &message)
void player_leaves(bool is_lobby)
void play_UI_sound(const std::string &files)
void play_bell(const std::string &files)
std::map< std::string, t_string > string_map