share/hedgewars/Data/Scripts/Params.lua
author nemo
Fri, 18 May 2018 09:57:24 -0400
changeset 13401 a52b8b8cbac4
parent 9985 42cd42e44c9a
permissions -rw-r--r--
merge this in too

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