share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Wed, 18 Jun 2014 23:53:11 +0400
changeset 10329 e2dba215655a
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Compressing and encoding

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