share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Sun, 27 Nov 2016 13:08:12 +0100
changeset 12100 e1bca1ebbad9
parent 9985 42cd42e44c9a
permissions -rw-r--r--
fix problem with pas2c build. please don't use "and not xyz", use "and (not xyz)"

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