share/hedgewars/Data/Scripts/Params.lua
author koda
Fri, 17 Jan 2014 18:17:47 +0100
changeset 10008 b8b91c7e0da8
parent 9985 42cd42e44c9a
permissions -rw-r--r--
drop redundancies for lua and physfs

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