share/hedgewars/Data/Scripts/Params.lua
author nemo
Mon, 25 May 2015 15:48:07 -0400
changeset 10959 1225f42f61e2
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Pass ScriptParams to preview to support techracer. Proof of concept for techracer, generate a preview for m=4

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