share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Tue, 21 Jan 2014 10:59:52 +0400
changeset 10033 0cdb8bb83ef7
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