[wesnoth-commits] [wesnoth/wesnoth] 882c64: Start a Lua mathx module to hold round, shuffle, r...
Celtic Minstrel
noreply at github.com
Sun Apr 4 14:52:39 UTC 2021
Branch: refs/heads/lua_reorg
Home: https://github.com/wesnoth/wesnoth
Commit: 882c64fdd9ceae140885b47952acf012274078b6
https://github.com/wesnoth/wesnoth/commit/882c64fdd9ceae140885b47952acf012274078b6
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
A data/lua/core/mathx.lua
M data/lua/helper.lua
M projectfiles/VC16/wesnoth.vcxproj
M projectfiles/VC16/wesnoth.vcxproj.filters
M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
M source_lists/wesnoth
M src/scripting/lua_kernel_base.cpp
A src/scripting/lua_mathx.cpp
A src/scripting/lua_mathx.hpp
Log Message:
-----------
Start a Lua mathx module to hold round, shuffle, random, and a few other things
Commit: 4c4387fba564b14989e76c1e8d50c36720b3b62d
https://github.com/wesnoth/wesnoth/commit/4c4387fba564b14989e76c1e8d50c36720b3b62d
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/_initial.lua
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
Add a versions module
Commit: ded8ad09c02c9cc1357d067937e4a1bbeddac034
https://github.com/wesnoth/wesnoth/commit/ded8ad09c02c9cc1357d067937e4a1bbeddac034
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/_initial.lua
A data/lua/core/audio.lua
M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
M src/scripting/game_lua_kernel.cpp
M src/scripting/game_lua_kernel.hpp
M src/scripting/lua_audio.cpp
M src/soundsource.cpp
M src/soundsource.hpp
Log Message:
-----------
Add an audio module
Commit: bfac5845528737cfcccea84835494f3f28281e63
https://github.com/wesnoth/wesnoth/commit/bfac5845528737cfcccea84835494f3f28281e63
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/gui.lua
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Move open_help to the gui module
Commit: 7ea473dd53193f41f802a87d7eaec228abf8006c
https://github.com/wesnoth/wesnoth/commit/7ea473dd53193f41f802a87d7eaec228abf8006c
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/units.lua
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_unit_attacks.cpp
M src/scripting/lua_unit_attacks.hpp
Log Message:
-----------
Move create_animator and create_weapon into the units module
Commit: 3cb63769bc5c71a1bf2ac6d0f23bd4698703f03c
https://github.com/wesnoth/wesnoth/commit/3cb63769bc5c71a1bf2ac6d0f23bd4698703f03c
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/interface.lua
M data/lua/wml-tags.lua
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Now color_adjust takes three arguments instead of a config
Consider it part of the public API now.
Commit: 3a587594891c10aad7da67e9ab7e9e4af90c732c
https://github.com/wesnoth/wesnoth/commit/3a587594891c10aad7da67e9ab7e9e4af90c732c
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
Deprecate wesnoth.game_config.version
There's no point having the same info in two places
Commit: 46d585ced68094f61f915da05db6b6f2903280ef
https://github.com/wesnoth/wesnoth/commit/46d585ced68094f61f915da05db6b6f2903280ef
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M src/scripting/lua_common.hpp
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
Make it easier to deprecate Lua attributes in C++ __index metafunctions
Commit: 244f397b51ad21a4317d1e19a0f2de26312e8535
https://github.com/wesnoth/wesnoth/commit/244f397b51ad21a4317d1e19a0f2de26312e8535
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/campaigns/World_Conquest/lua/game_mechanics/utils.lua
M data/lua/core/wml.lua
Log Message:
-----------
Move the Lua global variable helpers from WC to core
Commit: f0c54a0ba39cae6aee362d7846323a7163c529f4
https://github.com/wesnoth/wesnoth/commit/f0c54a0ba39cae6aee362d7846323a7163c529f4
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/mathx.lua
Log Message:
-----------
mathx: use quoted_split in random_choice
Commit: 498e0dd432c17080f1d324db3355200fd0e66aa5
https://github.com/wesnoth/wesnoth/commit/498e0dd432c17080f1d324db3355200fd0e66aa5
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/sides.lua
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Move wesnoth.create_side -> wesnoth.sides.create
Commit: 6eb44bb82b00a8894a994297030a3f688e2e98d7
https://github.com/wesnoth/wesnoth/commit/6eb44bb82b00a8894a994297030a3f688e2e98d7
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/sides.lua
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Move the deprecation for wesnoth.modify_ai to Lua so that it honours --strict-lua
Commit: bd624c87456553683823b954f57d53e54cde5ae2
https://github.com/wesnoth/wesnoth/commit/bd624c87456553683823b954f57d53e54cde5ae2
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/lua/core/wml.lua
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Move some more functions to the wml module
- eval_conditional and fire
- the internal set|get_variable functions
Commit: f2cae67d9bd54f462222192c36160772cc6ee743
https://github.com/wesnoth/wesnoth/commit/f2cae67d9bd54f462222192c36160772cc6ee743
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M data/campaigns/Under_the_Burning_Suns/scenarios/09_Blood_is_Thicker_Than_Water.cfg
M data/campaigns/tutorial/utils/utils.cfg
M data/core/macros/ai_controller.cfg
M data/lua/core/interface.lua
M data/lua/wml-tags.lua
M src/scripting/game_lua_kernel.cpp
M src/scripting/game_lua_kernel.hpp
Log Message:
-----------
Add wesnoth.interface.add_floating_label as a replacement for wesnoth.print
This returns a label handle which allows you to remove, reposition, or replace the label later.
In addition to all the features of wesnoth.print, you can now specify where the label appears onscreen.
Commit: df3569f74f2d6b5df4e9d35f89f4e4ba65b40f39
https://github.com/wesnoth/wesnoth/commit/df3569f74f2d6b5df4e9d35f89f4e4ba65b40f39
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
M src/scripting/game_lua_kernel.cpp
M src/scripting/game_lua_kernel.hpp
Log Message:
-----------
Add a new scenario module and move some functions there and to game_config
Addresses #4907
Commit: db2ee5b0e805aab4cb7856440dbbc6ba8f266a29
https://github.com/wesnoth/wesnoth/commit/db2ee5b0e805aab4cb7856440dbbc6ba8f266a29
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-04-04 (Sun, 04 Apr 2021)
Changed paths:
A data/lua/core/filesystem.lua
M data/lua/package.lua
M src/filesystem.cpp
M src/filesystem.hpp
M src/gui/dialogs/game_load.cpp
M src/save_index.cpp
M src/scripting/lua_fileops.cpp
M src/scripting/lua_fileops.hpp
M src/scripting/lua_kernel_base.cpp
Log Message:
-----------
Add a filesystem module
This currently contains have_file, read_file, canonical_path, get_image_size, and new functions that work with binary_path files.
Compare: https://github.com/wesnoth/wesnoth/compare/5358c58ef962...db2ee5b0e805
More information about the Commits
mailing list