share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Wed, 27 Apr 2016 00:04:37 +0200
changeset 11736 e9481c5a130b
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Lua-API - GetClanColor: Verify argument and display error message on fail (instead of engine crash)

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