Celtic Minstrel
5a51a309a4
[LuaDoc] Fix several minor errors in the specification of API
2024-02-06 19:04:00 -05:00
Celtic Minstrel
1af084515f
Exclude deprecated things from dir()
2022-06-20 20:54:28 -04:00
Celtic Minstrel
e635161957
fix wesnoth.type giving an error on tables or userdata without a metatable
2022-06-10 23:31:41 -04:00
Celtic Minstrel
e1300e29b0
Lua API: Add inline documentation for pretty much everything and convert existing docs ( #6483 )
...
The new format is EmmyLua-based and can be used with (at least) Visual Studio Code.
2022-02-17 13:43:31 -05:00
Celtic Minstrel
ff6894cee8
Lua API: Add a wesnoth.type() function
...
This checks both the Lua type and the metatable type to return a single unified result.
2021-09-04 22:20:28 -04:00
Celtic Minstrel
91f6bf93a4
Fix a broken deprecation and replace some deprecated uses
...
Fixes #5877
2021-06-20 00:59:59 -04:00
Pentarctagon
7b383cee68
Fixup deprecation method typo.
2021-06-19 23:37:22 -05:00
Celtic Minstrel
7f162cbd24
Lua: Rename find_vacant_tile to find_vacant_hex for naming consistency
2021-06-19 17:09:31 -04:00
Celtic Minstrel
1b13622bf9
fix whitespace
2021-06-19 15:43:33 -04:00
Celtic Minstrel
45c3ca3a73
Move path-related functions into a new wesnoth.paths module
...
This also adds support to the mapgen version of wesnoth.find_path for
taking an options table as the 3rd argument instead of several additional arguments.
The intent of this is to bring the two versions of find_path closer together.
For now, however, the actual options accepted in the table have not changed.
2021-06-19 15:43:33 -04:00
Celtic Minstrel
5a1e38e99b
Add wesnoth.sync module for the synchronization-related commands ( #5862 )
2021-06-19 15:39:10 -04:00
Celtic Minstrel
1c2636e989
fix whitespace
2021-06-19 11:07:53 -04:00
Celtic Minstrel
a03d59d7eb
Lua: Add a new schedule module
...
The primary components of this are:
- wesnoth.current.schedule
- wesnoth.map.get_time_area()
- wesnoth.schedule module
2021-06-19 11:07:53 -04:00
Celtic Minstrel
67ba27b8a3
Move the end level data accessors to wesnoth.scenario ( #5861 )
2021-06-17 20:41:48 -04:00
Celtic Minstrel
131ad43e3e
Move wesnoth.get_traits into wesnoth.game_config as global_traits
2021-06-15 09:57:30 -04:00
Celtic Minstrel
3c8de46771
There were some old functions that are now covered by the wesnoth.scenario module, so deprecate them
2021-06-06 13:42:54 -04:00
Celtic Minstrel
dddd551765
Add an audio module
2021-05-11 14:52:17 -04:00
Celtic Minstrel
2a1fc43860
Add a versions userdata for a cleaner way to compare and manipulate game versions
2021-05-11 14:50:29 -04:00
Celtic Minstrel
7e1f3bc27f
Rename get_time_stamp to ms_since_init
...
This better reflects what it actually does - it is not and has never been a timestamp.
2021-05-08 17:20:49 -04:00
Celtic Minstrel
862668911a
Split core.lua up by module to make things easier to find
...
Core is now a directory instead of a file. The Lua kernel automatically loads all files in that directory when it starts up.
2021-02-20 21:32:29 -05:00