share/hedgewars/Data/Scripts/Params.lua
author nemo
Wed, 07 Nov 2018 14:56:34 -0500
changeset 14163 e337e9920440
parent 9985 42cd42e44c9a
permissions -rw-r--r--
requires bash

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