share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Wed, 26 Apr 2017 00:04:49 +0200
changeset 12329 f88eebcf22c5
parent 9985 42cd42e44c9a
permissions -rw-r--r--
HedgeEditor: Fix incorrect preview of air attack icon in sprAMAmmos/sprAMAmmosBW

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