share/hedgewars/Data/Scripts/Params.lua
author alfadur
Fri, 02 Nov 2018 02:31:01 +0300
changeset 14088 3f21f27c6564
parent 9985 42cd42e44c9a
permissions -rw-r--r--
wrestle with borrow checker

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