section and within annotations for ldoc
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
2026-02-25 23:24:53 +01:00
parent 297ee8b622
commit 777c27aa54
27 changed files with 175 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
--- @section GameWindow
local _available_decisions = {}
local _selected_decision_index = 1
--- Draws the game window.
--- @within GameWindow
function GameWindow.draw()
local screen = Screen.get_by_id(Context.game.current_screen)
if screen.background then Map.draw(screen.background) end
@@ -13,6 +15,7 @@ function GameWindow.draw()
end
--- Updates the game window logic.
--- @within GameWindow
function GameWindow.update()
if Input.menu_back() then
Window.set_current("menu")
@@ -60,6 +63,7 @@ function GameWindow.update()
end
--- Sets the active window.
--- @within GameWindow
-- @param new_state string The ID of the new active window.
function GameWindow.set_state(new_state)
Window.set_current(new_state)