share/hedgewars/Data/Scripts/Params.lua
author alfadur <mail@none>
Wed, 06 Feb 2019 22:40:38 +0300
changeset 14712 2071da901c63
parent 9985 42cd42e44c9a
permissions -rw-r--r--
reconnect some message handlers

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