[Commits] [wesnoth/wesnoth] a77fad: add access to tables via unit.variables
GitHub
noreply at github.com
Thu Oct 8 19:37:46 UTC 2015
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: a77fada7845fa678f7db183955f4499f9d1fa629
https://github.com/wesnoth/wesnoth/commit/a77fada7845fa678f7db183955f4499f9d1fa629
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2015-10-08 (Thu, 08 Oct 2015)
Changed paths:
M src/scripting/game_lua_kernel.cpp
M src/scripting/lua_common.cpp
M src/scripting/lua_common.hpp
Log Message:
-----------
add access to tables via unit.variables
unit.variables now uses the same functionality as
wesnoth.get/set_variable (just for the unit variable instead of the game
variables) which makes it possible to access table values. Its also
posible to access subvariables as
unit.variables["list1[2].list2.length"]
More information about the Commits
mailing list