share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Tue, 12 Aug 2014 13:21:32 +0400
changeset 10377 c6d8e7cd6e54
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Challenge map #12

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