share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Tue, 26 May 2015 10:42:17 +0200
changeset 10965 fb2b006ba476
parent 9985 42cd42e44c9a
permissions -rw-r--r--
merge git head and hg head

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