share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Sun, 25 Oct 2015 20:40:27 +0100
changeset 11246 d9622394ec9c
parent 9985 42cd42e44c9a
permissions -rw-r--r--
changelog update

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