share/hedgewars/Data/Scripts/Params.lua
author nemo
Tue, 30 Dec 2014 18:23:11 -0500
branch0.9.21
changeset 10729 28d5cebdf660
parent 9985 42cd42e44c9a
permissions -rw-r--r--
this should probably work

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