mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 19:03:52 +00:00

This commit moves [event] to be implemented in lua/wml-tags.lua. It turns out that because of some questionable ordering in data/core/_main.cfg, none of the tags defined in data/lua/wml-tags.lua are actually defined at the time that core is read, instead they are defined right after this. This is broken, the entire wml library should be defined before core is read. Thus we reorder some directives in data/core/_main.cfg to ensure this. This commit adds lua callbacks `wesnoth.add_event_handler`, `wesnoth.remove_event_handler` as well.
This directory contains the core resources usable in WML by all campaigns and add-on packages.