share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Wed, 07 Mar 2018 13:48:51 +0100
changeset 13093 2b5314cc356c
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Lua: Rename global variable “L” to “LOCALE” Srsly, WTF? If we have to use global variables, at least give them descriptive names.

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