share/hedgewars/Data/Scripts/Params.lua
author alfadur
Wed, 10 Apr 2019 18:12:30 +0300
changeset 14788 b3adc030104b
parent 9985 42cd42e44c9a
permissions -rw-r--r--
implement server vars

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