share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Sat, 07 Jan 2017 21:34:00 +0300
changeset 12132 1525923cd7e3
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Give up on lalrpop, let's try nom

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