share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Thu, 06 Mar 2014 00:19:50 +0400
changeset 10179 26c4256a9e4b
parent 9985 42cd42e44c9a
permissions -rw-r--r--
merge

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