share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Tue, 21 Jan 2014 18:02:37 +0100
changeset 10036 3be36d2fdca6
parent 9985 42cd42e44c9a
permissions -rw-r--r--
use new API for changing GameFlags

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