share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Fri, 29 Sep 2017 22:09:11 +0200
changeset 12597 00b539e6115d
parent 9985 42cd42e44c9a
permissions -rw-r--r--
rename ifTransparent to ifColorKey This should make the name less confusing. However this image-flag will possibly be dropped completely.

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