Charakterbewegungen hinzugefügt, Deko hinzugefügt, Kochrezepte angepasst
This commit is contained in:
parent
95945c0306
commit
a0c893ca0b
1124 changed files with 64294 additions and 763 deletions
19
mods/futil/util/list.lua
Normal file
19
mods/futil/util/list.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
function futil.list(iterator)
|
||||
local t = {}
|
||||
local v = iterator()
|
||||
while v do
|
||||
t[#t + 1] = v
|
||||
v = iterator()
|
||||
end
|
||||
return t
|
||||
end
|
||||
|
||||
function futil.list_multiple(iterator)
|
||||
local t = {}
|
||||
local v = { iterator() }
|
||||
while #v > 0 do
|
||||
t[#t + 1] = v
|
||||
v = { iterator() }
|
||||
end
|
||||
return t
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue