[wesnoth-commits] [wesnoth/wesnoth] de772d: Fix a typo
Celtic Minstrel
noreply at github.com
Mon Nov 18 02:39:33 UTC 2019
Branch: refs/heads/lua_gamemap
Home: https://github.com/wesnoth/wesnoth
Commit: de772d9cb33fb19b63ebcc9fe1240f5a6536c0cf
https://github.com/wesnoth/wesnoth/commit/de772d9cb33fb19b63ebcc9fe1240f5a6536c0cf
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2019-11-17 (Sun, 17 Nov 2019)
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: 299298526f6063e6ebea7726726382e32563f1ff
https://github.com/wesnoth/wesnoth/commit/299298526f6063e6ebea7726726382e32563f1ff
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2019-11-17 (Sun, 17 Nov 2019)
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.
Compare: https://github.com/wesnoth/wesnoth/compare/de772d9cb33f%5E...299298526f60
More information about the Commits
mailing list