share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Mon, 24 Mar 2014 21:32:24 +0400
changeset 10214 426aafe1f3ed
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Fix script

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