share/hedgewars/Data/Scripts/Params.lua
author Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Fri, 03 Jan 2014 10:41:16 +0100
changeset 9915 67c9bd84f941
parent 9908 81eb25ddf594
child 9985 42cd42e44c9a
permissions -rw-r--r--
Added simple travis file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9908
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     1
-- Library for parameters handling
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     2
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     3
params = {}
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     4
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     5
function parseParams()
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     6
    for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     7
        params[k] = v
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     8
    end
81eb25ddf594 - Utility script for parameters handling
unc0rr
parents:
diff changeset
     9
end