share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Fri, 11 Sep 2015 03:07:48 +0200
changeset 11637 45316b6eb4a0
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Fix broken HedgeEditor map preview

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