share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Fri, 05 Oct 2018 17:27:12 +0200
changeset 13872 f01798038c2e
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Rename amDuck and related symbols to amCreeper, gtCreeper, etc. Compability for scripts is supported (amDuck=amCreeper, gtDuck=gtCreeper)

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