2021-12-04 13:18:54 +01:00
|
|
|
local ScreenList = Object:extend()
|
|
|
|
|
|
|
|
function ScreenList:initScreens()
|
|
|
|
self.screens = {}
|
|
|
|
end
|
|
|
|
|
|
|
|
function ScreenList:addScreen(name, screen)
|
|
|
|
self.screens[name] = screen
|
|
|
|
end
|
|
|
|
|
|
|
|
function ScreenList:deleteScreen(name)
|
|
|
|
self.screens[name]:purgeElements()
|
|
|
|
self.screens[name] = nil
|
|
|
|
end
|
|
|
|
|
2022-07-27 21:57:34 +02:00
|
|
|
function ScreenList:getScreen(name)
|
|
|
|
return self.screens[name]
|
|
|
|
end
|
|
|
|
|
2021-12-04 13:18:54 +01:00
|
|
|
return ScreenList
|