- Primera pasada de reorganització
This commit is contained in:
21
data/app.lua
21
data/app.lua
@@ -1,16 +1,15 @@
|
||||
app = {
|
||||
|
||||
update = nil,
|
||||
stack = {},
|
||||
}
|
||||
|
||||
push = function(func)
|
||||
table.insert(app.stack, app.update)
|
||||
app.update = func
|
||||
end,
|
||||
function app.push(func)
|
||||
table.insert(app.stack, app.update)
|
||||
app.update = func
|
||||
end
|
||||
|
||||
pop = function()
|
||||
if #app.stack > 0 then
|
||||
app.update = table.remove(app.stack)
|
||||
end
|
||||
end,
|
||||
}
|
||||
function app.pop()
|
||||
if #app.stack > 0 then
|
||||
app.update = table.remove(app.stack)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user