share/hedgewars/Data/Scripts/Params.lua
author Vittorio Giovara <vittorio.giovara@gmail.com>
Sat, 07 Nov 2015 17:33:43 +0100
changeset 11318 78d8255349d3
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Add markdown extension to README so github can render it more nicely Keep a link to the standard README file 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