mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 18:21:12 +00:00
Lua API: Use a named tuple when converting a location set to triples
This commit is contained in:
parent
7d7b58e31e
commit
c59c3b9273
@ -324,7 +324,9 @@ end
|
||||
|
||||
function methods:to_triples()
|
||||
local res = {}
|
||||
self:iter(function(x, y, v) table.insert(res, { x, y, v }) end)
|
||||
self:iter(function(x, y, v)
|
||||
table.insert(res, wesnoth.named_tuple({ x, y, v }, {"x", "y", "value"}))
|
||||
end)
|
||||
return res
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user