author | unc0rr |
Sun, 31 Jan 2016 16:07:14 +0300 | |
changeset 11537 | bf86c6cb9341 |
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 |