share/hedgewars/Data/Scripts/Params.lua
author unC0Rr
Wed, 18 Feb 2015 14:44:59 +0300
changeset 10832 ad257b8b2816
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Racer challenge #13

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