share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Mon, 14 Apr 2014 13:46:46 +0400
changeset 10222 084a1a925da9
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Racer challenge map #7

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