share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Thu, 02 Oct 2014 12:08:22 +0200
changeset 10423 b9d6463cf2ca
parent 9985 42cd42e44c9a
permissions -rw-r--r--
fix mapgen of other scripts 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