share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Sat, 13 Feb 2016 00:36:38 +0300
changeset 11550 86528b0cd491
parent 9985 42cd42e44c9a
permissions -rw-r--r--
detectMap() rewrite with more sane approach, also check waypoints placement to avoid cheating

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