share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Sat, 24 Mar 2018 22:28:53 +0100
changeset 13277 c15af5a5f458
parent 9985 42cd42e44c9a
permissions -rw-r--r--
TechRacer: Remove script parameter “helpDisabled” Pointless since you can quickly toggle help anyway, so supporting this script param only clutters the documentation.

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