[wesnoth-commits] [wesnoth/wesnoth] a5ae15: Fix a typo
Celtic Minstrel
noreply at github.com
Mon Feb 15 22:36:59 UTC 2021
Branch: refs/heads/lua_gamemap
Home: https://github.com/wesnoth/wesnoth
Commit: a5ae15936e33596a97c56b9ad366cbfbfd726788
https://github.com/wesnoth/wesnoth/commit/a5ae15936e33596a97c56b9ad366cbfbfd726788
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-02-15 (Mon, 15 Feb 2021)
Changed paths:
M src/scripting/lua_terrainfilter.cpp
M src/scripting/lua_terrainfilter.hpp
M src/scripting/lua_terrainmap.cpp
M src/scripting/lua_terrainmap.hpp
M src/scripting/mapgen_lua_kernel.cpp
Log Message:
-----------
Fix a typo
Commit: a3be2df018779166f1c328b3502f55e2194014a1
https://github.com/wesnoth/wesnoth/commit/a3be2df018779166f1c328b3502f55e2194014a1
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-02-15 (Mon, 15 Feb 2021)
Changed paths:
M data/lua/core.lua
M src/editor/action/action.cpp
M src/editor/action/mouse/mouse_action.cpp
M src/editor/map/editor_map.cpp
M src/map/map.cpp
M src/map/map.hpp
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_terrainfilter.cpp
M src/scripting/lua_terrainfilter.hpp
M src/scripting/lua_terrainmap.cpp
M src/scripting/lua_terrainmap.hpp
M src/scripting/mapgen_lua_kernel.cpp
Log Message:
-----------
Refactor the game map to permit exposing it to Lua
This adds map[{x,y}] and map[x][y] as valid ways to access the individual tiles of the map, rather than using map.set_terrain and map.get_terrain. This renders get_terrain redundant but not set_terrain (as the latter offers a third parameter).
Special locations as viewed through the map userdata are now iterable, and the length function also works.
Commit: 48cb020fd6fbd447b483019836ee9186f8b7c9f2
https://github.com/wesnoth/wesnoth/commit/48cb020fd6fbd447b483019836ee9186f8b7c9f2
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-02-15 (Mon, 15 Feb 2021)
Changed paths:
M src/game_board.cpp
M src/game_board.hpp
M src/scripting/lua_terrainmap.cpp
Log Message:
-----------
Make map.set_terrain actually work in the game
Compare: https://github.com/wesnoth/wesnoth/compare/214450248d4c...48cb020fd6fb
More information about the Commits
mailing list