refact
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-02-22 18:15:24 +01:00
parent d9febf16e0
commit 83e2000198
10 changed files with 166 additions and 104 deletions

View File

@@ -1,3 +1,7 @@
-- Ensure Screen table exists globally, and get a local reference to it
local Screen = _G.Screen or {}
_G.Screen = Screen
local _screens = {}
--- Registers a screen definition.
@@ -24,3 +28,9 @@ end
function Screen.get_by_id(screen_id)
return _screens[screen_id]
end
--- Gets all registered screens.
-- @return table A table containing all registered screen data, indexed by their IDs.
function Screen.get_all()
return _screens
end