share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Tue, 06 Mar 2018 04:26:51 +0100
changeset 13084 e6b0b3e86c2a
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Update README about the Hedgewars training

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