share/hedgewars/Data/Scripts/Params.lua
author unc0rr
Mon, 14 Dec 2015 00:24:03 +0300
branchqmlfrontend
changeset 11459 3c5d99013baf
parent 9985 42cd42e44c9a
permissions -rw-r--r--
- Improve IPC handling in engine - Handle EM protocol command - Some fixes for net game

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