share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Wed, 17 Oct 2018 23:02:18 +0200
changeset 13958 7f1c178506bb
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Improve test a bit

-- 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