[wesnoth-commits] [wesnoth/wesnoth] 475493: Fix a typo
Celtic Minstrel
noreply at github.com
Wed Nov 20 01:34:37 UTC 2019
Branch: refs/heads/lua_gamemap
Home: https://github.com/wesnoth/wesnoth
Commit: 47549399b7d6bd907d595954fa0f8aa424ad8dc5
https://github.com/wesnoth/wesnoth/commit/47549399b7d6bd907d595954fa0f8aa424ad8dc5
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2019-11-19 (Tue, 19 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: f176fd57f90934508309d2e2ee689a19207a26d4
https://github.com/wesnoth/wesnoth/commit/f176fd57f90934508309d2e2ee689a19207a26d4
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2019-11-19 (Tue, 19 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/299298526f60...f176fd57f909
More information about the Commits
mailing list