author | Wuzzy <almikes@aol.com> |
Fri, 28 Apr 2017 22:08:12 +0200 | |
changeset 12387 | 95fc84a9837e |
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 |