share/hedgewars/Data/Scripts/Params.lua
author alfadur
Tue, 04 Jun 2019 23:05:12 +0300
changeset 15123 0e59abde6766
parent 9985 42cd42e44c9a
permissions -rw-r--r--
parser cleanup

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