share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Tue, 14 Jan 2014 12:44:29 +0400
changeset 9985 42cd42e44c9a
parent 9908 81eb25ddf594
permissions -rw-r--r--
GravRacer, GravHigh, GravMutant, Grav... uhm... shoppamap? Easy! Gravity script could be combined with any other script now. TODO: security concerns? script name to load is passed via game scheme.

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