1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 00:32:49 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.9 KiB
ReStructuredText
Raw Normal View History

2021-02-23 21:45:03 +01:00
#################
Lua API reference
#################
.. include:: version.rst
2021-02-23 21:45:03 +01:00
.. toctree::
:hidden:
2021-02-23 21:45:03 +01:00
engine_handlers
2021-11-18 15:19:54 +00:00
user_interface
2022-01-23 20:49:42 +01:00
aipackages
2022-05-24 19:11:13 +00:00
setting_renderers
2022-01-23 20:49:42 +01:00
events
2024-05-11 22:25:56 -05:00
openmw_ambient
2024-01-26 21:39:33 +00:00
openmw_animation
openmw_async
2021-11-01 18:39:18 +01:00
openmw_camera
2024-05-11 22:25:56 -05:00
openmw_core
openmw_debug
2024-05-11 22:25:56 -05:00
openmw_input
openmw_markup
openmw_menu
2024-05-11 22:25:56 -05:00
openmw_nearby
openmw_postprocessing
openmw_self
openmw_storage
openmw_types
openmw_ui
openmw_util
openmw_vfs
openmw_world
2022-01-10 21:04:07 +01:00
openmw_aux_calendar
openmw_aux_time
openmw_aux_ui
2024-05-11 22:25:56 -05:00
openmw_aux_util
interface_activation
2022-01-23 20:49:42 +01:00
interface_ai
2024-01-26 21:39:33 +00:00
interface_animation
2021-11-01 18:39:18 +01:00
interface_camera
interface_controls
2024-02-20 12:06:19 -06:00
interface_gamepadcontrols
interface_item_usage
interface_mwui
interface_settings
2024-01-14 20:33:23 +01:00
interface_skill_progression
2023-07-09 08:42:09 +02:00
interface_ui
iterables
2021-02-23 21:45:03 +01:00
- :ref:`Engine handlers reference`
2021-11-18 15:19:54 +00:00
- :ref:`User interface reference <User interface reference>`
- `Game object reference <openmw_core.html##(GameObject)>`_
- `Cell reference <openmw_core.html##(Cell)>`_
2022-01-23 20:49:42 +01:00
- :ref:`Built-in AI packages`
- :ref:`Built-in events`
2021-02-23 21:45:03 +01:00
**API packages**
2021-04-02 19:42:19 +02:00
API packages provide functions that can be called by scripts. I.e. it is a script-to-engine interaction.
A package can be loaded with ``require('<package name>')``.
It can not be overloaded even if there is a lua file with the same name.
The list of available packages is different for global and for local scripts.
Player scripts are local scripts that are attached to a player.
.. include:: tables/packages.rst
2021-02-23 21:45:03 +01:00
**openmw_aux**
``openmw_aux.*`` are built-in libraries that are itself implemented in Lua. They can not do anything that is not possible with the basic API, they only make it more convenient.
Sources can be found in ``resources/vfs/openmw_aux``. In theory mods can override them, but it is not recommended.
.. include:: tables/aux_packages.rst
2021-11-01 18:39:18 +01:00
**Interfaces of built-in scripts**
2021-11-01 18:39:18 +01:00
.. include:: tables/interfaces.rst