share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Thu, 28 Apr 2016 17:42:43 +0200
changeset 11761 df92c83375e2
parent 9985 42cd42e44c9a
permissions -rw-r--r--
lupdate

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