share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Fri, 07 Feb 2014 00:47:51 +0400
changeset 10115 794af9339726
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