share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Wed, 13 Apr 2016 13:59:20 +0200
changeset 11924 ce277e51b603
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Racer: Clean up strings

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