share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Mon, 01 May 2017 00:04:28 +0200
changeset 12393 0eb1457f7b94
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Add big fat developer warning to all racing scripts about compability This is done to prevent me and others from committing crap. :D

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