share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Tue, 02 Dec 2014 23:33:28 +0100
changeset 10611 58cad46782ff
parent 9985 42cd42e44c9a
permissions -rw-r--r--
move functionality of Draw.lua into engine

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