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
Pentarctagon
370d03ccb7
Fix luacheck warnings and add to CI.
...
Note the `exclude_files` in .luacheckrc should be deleted once the eventual Ubuntu 22.04 base image has an updated luacheck that supports lua 5.4.
2021-11-28 14:26:02 -06:00
Celtic Minstrel
44da16d66a
Lua API: Use the new location_set complement in the place_shroud deprecation wrapper
2021-07-30 19:22:57 -04:00
Celtic Minstrel
858f37e20e
Lua API: Fix the deprecation wrappers for place_shroud and remove_shroud
...
- The "all" special case moved to place_shroud, as it should be
- Shroud data string handling fixed
Fixes #5885
2021-07-30 19:22:57 -04:00
Celtic Minstrel
47951c4700
Lua API: Add wesnoth.sides.iter
...
This replaces both helper.get_sides and helper.all_teams
2021-07-07 01:32:05 -04:00
Pentarctagon
0b4f820a46
Fix whitespace.
2021-06-23 10:30:39 -05:00
Celtic Minstrel
8bcfbed34e
Implement shroud API deprecation wrappers that handle shroud data strings
...
Addresses #5885
2021-06-23 09:55:26 -04:00
Celtic Minstrel
96b5bf43ef
Move shroud/fog ops to wesnoth.sides and change the API somewhat
...
- place_shroud and remove_shroud no longer accept a shroud data string or the special string "all"
- new functions are added to convert between lists of locations and shroud data strings
- place_fog, remove_fog, is_fogged, and is_shrouded aren't changed, only moved
2021-06-19 11:07:53 -04:00
Celtic Minstrel
0970880910
whitespace fixes
2021-05-11 14:52:22 -04:00
Celtic Minstrel
603ecdfb99
Move the deprecation for wesnoth.modify_ai to Lua so that it honours --strict-lua
2021-05-11 14:52:19 -04:00
Celtic Minstrel
9bf189a615
Move wesnoth.create_side -> wesnoth.sides.create
2021-05-11 14:52:19 -04:00
Steve Cotton
24e2f8f767
Whitespace fixes for no newline at end of file
...
The new CI script whitespace-checking script changes these, but not on Linux.
2021-05-03 11:52:40 +02:00
Pentarctagon
d203b061f9
Whitespace cleanup of lua files.
2021-04-25 15:11:09 -05: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