share/hedgewars/Data/Scripts/Params.lua
author mikade <redgrinner@gmail.com>
Wed, 27 May 2015 22:34:11 +0900
changeset 10967 1434cec96ca3
parent 9985 42cd42e44c9a
permissions -rw-r--r--
- preview generation for rubbers, air-mines, crates, barrels - add map previews for the other 6 TechRacer maps - make TechRacer (more or less) work out the box - randomize map by clicking on preview (when map unspecified)

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