share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Tue, 26 Apr 2016 20:51:13 +0200
changeset 11733 67049c8dedd1
parent 9985 42cd42e44c9a
permissions -rw-r--r--
make construction mode work with fort mode without mixing up clans and forts

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