Skip to content

Commit

Permalink
Minor rearrangement/fixup in core.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed May 24, 2017
1 parent 8febe03 commit f42852d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/lua/core.lua
Expand Up @@ -16,11 +16,10 @@ function wesnoth.confirm(title, msg)
return wesnoth.show_message_box(title, msg, "yes_no", true)
end

wml = {}
wml.variable = {}

--[========[Config Manipulation Functions]========]

wml = {}
wml.tovconfig = wesnoth.tovconfig
wml.tostring = wesnoth.debug

Expand Down Expand Up @@ -147,6 +146,7 @@ end

--[========[Basic variable access]========]

wml.variable = {}
wml.variable.get = wesnoth.get_variable
wml.variable.set = wesnoth.set_variable
wml.variable.get_all = wesnoth.get_all_vars
Expand Down Expand Up @@ -261,7 +261,7 @@ end
--! This is similar to helper.get_variable_array, except that the elements
--! can be used for writing too.
--! @returns a table containing all the variable proxies (starting at index 1).
function wml.get_proxy_array(var)
function wml.variable.get_proxy_array(var)
local result = {}
for i = 1, wesnoth.get_variable(var .. ".length") do
result[i] = get_variable_proxy(string.format("%s[%d]", var, i - 1))
Expand Down

0 comments on commit f42852d

Please sign in to comment.