share/hedgewars/Data/Scripts/Params.lua
author alfadur
Sun, 14 Oct 2018 21:25:59 +0300
changeset 13914 a44e4c057f57
parent 9985 42cd42e44c9a
permissions -rw-r--r--
use correct compiler flags

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