author | alfadur |
Sun, 14 Oct 2018 21:25:59 +0300 | |
changeset 13914 | a44e4c057f57 |
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 |