mirror of https://github.com/OpenMW/openmw.git
Document menu scripts
parent
539dc1ee43
commit
a3fd1b3d6f
@ -0,0 +1,7 @@
|
||||
Package openmw.menu
|
||||
======================
|
||||
|
||||
.. include:: version.rst
|
||||
|
||||
.. raw:: html
|
||||
:file: generated_html/openmw_ambient.html
|
@ -0,0 +1,65 @@
|
||||
---
|
||||
-- `openmw.menu` can be used only in menu scripts.
|
||||
-- @module menu
|
||||
-- @usage local menu = require('openmw.menu')
|
||||
|
||||
---
|
||||
-- @type STATE
|
||||
-- @field [parent=#STATE] NoGame
|
||||
-- @field [parent=#STATE] Running
|
||||
-- @field [parent=#STATE] Ended
|
||||
|
||||
|
||||
---
|
||||
-- Current game state
|
||||
-- @function [parent=#menu] getState
|
||||
-- @return #STATE
|
||||
|
||||
---
|
||||
-- Start a new game
|
||||
-- @function [parent=#menu] newGame
|
||||
|
||||
---
|
||||
-- Load the game from a save slot
|
||||
-- @function [parent=#menu] loadGame
|
||||
-- @param #string directory name of the save directory (e. g. character)
|
||||
-- @param #string slotName name of the save slot
|
||||
|
||||
---
|
||||
-- Delete a saved game
|
||||
-- @function [parent=#menu] deleteGame
|
||||
-- @param #string directory name of the save directory (e. g. character)
|
||||
-- @param #string slotName name of the save slot
|
||||
|
||||
---
|
||||
-- Current save directory
|
||||
-- @function [parent=#menu] getCurrentSaveDir
|
||||
-- @return #string
|
||||
|
||||
---
|
||||
-- Save the game
|
||||
-- @function [parent=#menu] saveGame
|
||||
-- @param #string description human readable description of the save
|
||||
-- @param #string slotName name of the save slot
|
||||
|
||||
---
|
||||
-- @type SaveInfo
|
||||
-- @field #string description
|
||||
-- @field #string playerName
|
||||
-- @field #string playerLevel
|
||||
-- @field #list<#string> contentFiles
|
||||
|
||||
---
|
||||
-- List of all saves for the given directory
|
||||
-- @function [parent=#menu] getSaves
|
||||
-- @param #string directory name of the save directory (e. g. character)
|
||||
-- @return #list<#SaveInfo>
|
||||
|
||||
---
|
||||
-- List of all available saves
|
||||
-- @function [parent=#menu] getAllSaves
|
||||
-- @return #list<#SaveInfo>
|
||||
|
||||
---
|
||||
-- Exit the game
|
||||
-- @function [parent=#menu] quit
|
Loading…
Reference in New Issue