32 class pending_event_handler;
50 const std::unique_ptr<game_events::wml_event_pump>
pump_;
A config object defines a single node in a WML file, with access to child nodes.
boost::iterator_range< const_child_iterator > const_child_itors
The game event manager loads the scenario configuration object, and ensures that events are handled a...
std::function< void(game_events::manager &, handler_ptr &)> event_func_t
void execute_on_events(const std::string &event_id, const event_func_t &func)
manager(const manager &)=delete
const std::unique_ptr< game_events::wml_event_pump > pump_
game_events::wml_event_pump & pump()
manager & operator=(const manager &)=delete
void write_events(config &cfg, bool include_nonserializable=false) const
void remove_event_handler(const std::string &id)
Removes an event handler.
void read_scenario(const config &scenario_cfg, game_lua_kernel &lk)
void add_event_handler_from_wml(const config &handler, game_lua_kernel &lk, bool is_menu_item=false)
Create an event handler from an [event] tag.
void add_events(const config::const_child_itors &cfgs, game_lua_kernel &lk, const std::string &type=std::string())
const handler_ptr get_event_handler_by_id(const std::string &id)
Gets an event handler by ID.
bool is_event_running() const
const std::unique_ptr< event_handlers > event_handlers_
game_events::wmi_manager wml_menu_items_
pending_event_handler add_event_handler_from_lua(const std::string &name, const std::string &id, bool repeat=false, double priority=0., bool is_menu_item=false)
Create an empty event handler.
game_events::wmi_manager & wml_menu_items()
std::set< std::string > unit_wml_ids_
Represents a handler that is about to be added to the events manager but is still waiting for some da...
Definitions for the interface to Wesnoth Markup Language (WML).
std::shared_ptr< event_handler > handler_ptr
Declarations for a container for wml_menu_item.