Update of bug #15664 (project wesnoth):
Status: None => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
All of these tags can already be made available to Wesnoth 1.8 by using
LuaWML. For instance, here is a possible implementation of the [copy_array]
tag (with src= and dst= fields).
wesnoth.register_wml_action("copy_array",
function(args)
local src, dst = args.src, args.dst
for i = 0, wesnoth.get_variable(src .. ".length") - 1 do
wesnoth.set_variable(string.format("%s[%d]", src, i),
wesnoth.get_variable(string.format("%s[%d]", dst, i)))
end
end)
I don't see the point of adding them to the C++ part of the engine. In fact,
most WML tags will be phased out of the C++ engine in 1.9. So I'm closing
this feature request.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15664>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs