author | Wuzzy <almikes@aol.com> |
Thu, 24 Nov 2016 05:35:21 +0100 | |
changeset 12061 | 5beaf30c1cef |
parent 9985 | 42cd42e44c9a |
permissions | -rw-r--r-- |
9908 | 1 |
-- Library for parameters handling |
2 |
||
3 |
params = {} |
|
4 |
||
5 |
function parseParams() |
|
9985
42cd42e44c9a
GravRacer, GravHigh, GravMutant, Grav... uhm... shoppamap? Easy! Gravity script could be combined with any other script now.
unc0rr
parents:
9908
diff
changeset
|
6 |
if ScriptParam ~= nil then |
42cd42e44c9a
GravRacer, GravHigh, GravMutant, Grav... uhm... shoppamap? Easy! Gravity script could be combined with any other script now.
unc0rr
parents:
9908
diff
changeset
|
7 |
for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do |
42cd42e44c9a
GravRacer, GravHigh, GravMutant, Grav... uhm... shoppamap? Easy! Gravity script could be combined with any other script now.
unc0rr
parents:
9908
diff
changeset
|
8 |
params[k] = v |
42cd42e44c9a
GravRacer, GravHigh, GravMutant, Grav... uhm... shoppamap? Easy! Gravity script could be combined with any other script now.
unc0rr
parents:
9908
diff
changeset
|
9 |
end |
9908 | 10 |
end |
11 |
end |