mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 20:56:07 +00:00

This means that they are now added to the units module by default in C++, and only duplicated to the Wesnoth module in Lua. Some additional functions were moved: - wesnoth.create_unit -> wesnoth.units.create - wesnoth.get_units -> wesnoth.units.find - wesnoth.get_unit -> wesnoth.units.get Deprecated wesnoth.get_recall_units in favour of wesnoth.get_units, which has gained the ability to match units on the recall list if x="recall" or y="recall" appears in the filter at toplevel. The wesnoth.units module now acts like a metatable for unit userdata, meaning that any functions (or attributes) added to the module will be visible through any unit.