[Commits] [wesnoth/wesnoth] 33ed63: rename set_cpp_funcs to 'set_functions' in lua_cpp...

GitHub noreply at github.com
Mon Nov 24 22:13:24 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 33ed63a2d5001a320d4a49d53e0cd049f8256dd5
      https://github.com/wesnoth/wesnoth/commit/33ed63a2d5001a320d4a49d53e0cd049f8256dd5
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-24 (Mon, 24 Nov 2014)

  Changed paths:
    M src/scripting/lua_cpp_function.cpp
    M src/scripting/lua_cpp_function.hpp

  Log Message:
  -----------
  rename set_cpp_funcs to 'set_functions' in lua_cpp namespace


  Commit: abebbd8b7eb77154d09f11b8752b72459a692e09
      https://github.com/wesnoth/wesnoth/commit/abebbd8b7eb77154d09f11b8752b72459a692e09
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-24 (Mon, 24 Nov 2014)

  Changed paths:
    M src/scripting/lua_cpp_function.cpp
    M src/scripting/lua_cpp_function.hpp

  Log Message:
  -----------
  add support for lua cpp function closures

This is important because the userdata function objects, although
they have call operators, don't seem to work quite right when used
in metatables.


  Commit: 9eaba64651944bbe463a77a2611f37697421f15d
      https://github.com/wesnoth/wesnoth/commit/9eaba64651944bbe463a77a2611f37697421f15d
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-24 (Mon, 24 Nov 2014)

  Changed paths:
    M src/game_board.hpp
    M src/play_controller.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  refactor game_lua_kernel not to use resources:: for gamestate

This commit changes the majority of the wesnoth callback functions
for the game lua kernel to be private methods of the game lua
kernel. The game lua kernel is given direct access, via it's ctor,
to references of many of the things provided by resources. The
call back functions are modified to access these private reference
variables instead of resources, and they are added to the
scripting environment using the lua cpp function mechanism.

This greatly improves encapsulation and will eventually lead to
eliminating the resources pointers from the game lua kernel
entirely.


  Commit: 9d2c5029469c3848f9a8a20b1126cabedeee5171
      https://github.com/wesnoth/wesnoth/commit/9d2c5029469c3848f9a8a20b1126cabedeee5171
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-24 (Mon, 24 Nov 2014)

  Changed paths:
    M src/game_events/pump.cpp

  Log Message:
  -----------
  convert some null pointer dereferences into assertion failures


  Commit: 74787e80daa53297d5106ffc6bfcc7728d24cd13
      https://github.com/wesnoth/wesnoth/commit/74787e80daa53297d5106ffc6bfcc7728d24cd13
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-11-24 (Mon, 24 Nov 2014)

  Changed paths:
    M src/replay_controller.cpp

  Log Message:
  -----------
  fixup replay reset: reconstruct the lua kernel


Compare: https://github.com/wesnoth/wesnoth/compare/48a14ddadf8b...74787e80daa5


More information about the Commits mailing list