share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Tue, 02 Dec 2014 22:11:22 +0100
changeset 10609 15f2908113a1
parent 9985 42cd42e44c9a
permissions -rw-r--r--
make tests use Draw.lua for now 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