share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Mon, 24 Nov 2014 22:33:44 +0100
changeset 10548 28584bcb73a2
parent 9985 42cd42e44c9a
permissions -rw-r--r--
test case that spawns 2000 mines in a pit. run with ctest -R mines # only works if cmake was ran after pulling this commit

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