share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Tue, 20 Feb 2018 15:37:36 +0100
changeset 13043 356995c8c48b
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Lua API: Remove empty functions CampaignLock and CampaignUnlock Those were just no-op. Better use the issue tracker for suggestions?

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