50 const std::string&
id,
60 std::replace(this->name.begin(), this->name.end(),
' ',
'_');
75 const std::unique_ptr<pump_impl>
impl_;
88 void set_undo_disabled(
bool mutated);
93 bool action_canceled();
96 void set_action_canceled();
99 bool context_skip_messages();
102 void context_skip_messages(
bool skip);
108 void put_wml_message(
const std::string& logger,
const std::string& message,
bool in_chat);
121 const std::string&
id,
126 void raise(
const std::string& event,
127 const std::string&
id,
132 inline void raise(
const std::string& event,
137 raise(event,
"", loc1, loc2,
data);
143 void flush_messages();
148 void fill_wml_messages_map(std::map<std::string, int>& msg_map, std::stringstream& source);
150 void show_wml_messages(std::stringstream& source,
const std::string& caption);
152 void show_wml_errors();
154 void show_wml_messages();
156 void put_wml_message(
lg::logger& logger,
const std::string& prefix,
const std::string& message,
bool in_chat);
Definitions for the interface to Wesnoth Markup Language (WML).
queued_event(const std::string &name, const std::string &id, const entity_location &loc1, const entity_location &loc2, const config &data)
std::string id
Text to match against addon_info.tags()
The game event manager loads the scenario configuration object, and ensures that events are handled a...
const std::unique_ptr< pump_impl > impl_
std::shared_ptr< event_handler > handler_ptr
std::tuple< bool, bool > pump_result_t
A config object defines a single node in a WML file, with access to child nodes.
Define locations as used by the game's events mechanism.