Content deleted Content added
Optimization |
Optimization |
||
Line 216:
-- to do: add rest of S-line parameters
local _index = {}
local
['
['
['
['
['right'] = 'right'
},
['
['
['type
['type-
['type-right'] = 'TypeR',
-- ['through'] = 'through', -- The way this would work is that it would replace either "Terminus" cell, rather than just one of them in particular.
-- ['through-left'] = 'throughL',▼
-- ['through-
-- ['
-- ['
-- ['transfer'] = 'transfer'
},
['
['oneway-
-- ['round-
-- ['
['circular
['circular-
['
['through-
}
}
for k, v in pairs(_args) do▼
▲ local a = string.match(k, '(%a+)%d+') or k
▲ local b = tonumber(string.match(k, '%a+(%d+)')) or 1
if parameters['strings'][a] then
args[parameters['strings'][a]][b] =
_index[b] = true
elseif args[parameters['optional strings'][a]] then
args[parameters['optional strings'][a]][b] =
elseif args[parameters['optional boolean'][a]] then
args[parameters['optional boolean'][a]][b] = yesno(
end
end
▲ for k, v in pairs(_args) do
mapArg(k, v)
end
local index = {}
local function buildIndex(address)
table.insert(index, address)
end
for k, v in pairs(_index) do
end
table.sort(index)
|