The Battle for Wesnoth  1.19.0-dev
Classes | Macros
synced_commands.hpp File Reference
#include <map>
#include <string>
#include <functional>
Include dependency graph for synced_commands.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  synced_command
 

Macros

#define SYNCED_COMMAND_HANDLER_FUNCTION(pname, pcfg, use_undo, show, error_handler)
 

Macro Definition Documentation

◆ SYNCED_COMMAND_HANDLER_FUNCTION

#define SYNCED_COMMAND_HANDLER_FUNCTION (   pname,
  pcfg,
  use_undo,
  show,
  error_handler 
)
Value:
static bool synced_command_func_##pname(const config & pcfg, bool use_undo, bool show, synced_command::error_handler_function error_handler ); \
static synced_command synced_command_action_##pname(#pname, &synced_command_func_##pname); \
static bool synced_command_func_##pname(const config & pcfg, bool use_undo, bool show, synced_command::error_handler_function error_handler)
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:159
std::function< void(const std::string &)> error_handler_function
void show(const std::string &window_id, const t_string &message, const point &mouse, const SDL_Rect &source_rect)
Shows a tip.
Definition: tooltip.cpp:79

Definition at line 50 of file synced_commands.hpp.