The Battle for Wesnoth  1.19.5+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  action_spectator
 
class  synced_command
 

Macros

#define SYNCED_COMMAND_HANDLER_FUNCTION(pname, pcfg, spectator)
 

Macro Definition Documentation

◆ SYNCED_COMMAND_HANDLER_FUNCTION

#define SYNCED_COMMAND_HANDLER_FUNCTION (   pname,
  pcfg,
  spectator 
)
Value:
static bool synced_command_func_##pname(const config& pcfg, action_spectator& spectator); \
static synced_command synced_command_action_##pname(#pname, &synced_command_func_##pname); \
static bool synced_command_func_##pname(const config& pcfg, action_spectator& spectator)
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:172

Definition at line 74 of file synced_commands.hpp.