share/hedgewars/Data/Scripts/Params.lua
author alfadur
Mon, 19 Nov 2018 04:21:44 +0300
changeset 14234 27ae2d3d04b6
parent 9985 42cd42e44c9a
permissions -rw-r--r--
seems like it's either this or swap indexing order everywhere

-- Library for parameters handling

params = {}

function parseParams()
    if ScriptParam ~= nil then
        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
            params[k] = v
        end
    end
end