Added [remove_event] (equivalent to [event] id= remove=yes)

This commit is contained in:
Charles Dang 2014-12-26 22:33:09 +11:00
parent 94006f7b02
commit 8a3572a62b

View file

@ -1401,6 +1401,12 @@ function wml_actions.event(cfg)
end
end
function wml_actions.remove_event(cfg)
local id = cfg.id or helper.wml_error("[remove_event] missing required id= key")
wesnoth.remove_event_handler(id)
end
function wml_actions.inspect(cfg)
wesnoth.gamestate_inspector(cfg)
end