share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Sat, 04 Jul 2015 03:43:41 +0200
changeset 10996 78e49c835d96
parent 9985 42cd42e44c9a
permissions -rw-r--r--
fix Rubberduck grave

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