share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Thu, 30 Jan 2014 16:08:05 +0400
changeset 10091 213c38232b3d
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Official racer challenge #2

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