author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 14 Jan 2019 21:19:57 +0100 | |
changeset 14595 | c5f18710a184 |
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 |