share/hedgewars/Data/Scripts/Params.lua
author alfadur
Mon, 19 Nov 2018 09:37:53 +0300
changeset 14258 81fba21495a5
parent 9985 42cd42e44c9a
permissions -rw-r--r--
was a wrong copy apparently

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