share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Sat, 10 Feb 2018 06:07:24 +0100
changeset 12948 f85a040d0350
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Refactor Construction Mode code (delete old comments, move code around. NO functional changes)

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