share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Wed, 02 Sep 2015 05:52:02 +0200
changeset 11064 884f40b6f640
parent 9985 42cd42e44c9a
permissions -rw-r--r--
some more tweaks

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