[Commits] [wesnoth/wesnoth] a885c2: add alignment getter/setter for lua units

GitHub noreply at github.com
Sun Jan 31 01:27:18 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a885c2bdf12d94c436663ee696fcd34ccbb9b5f1
      https://github.com/wesnoth/wesnoth/commit/a885c2bdf12d94c436663ee696fcd34ccbb9b5f1
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-01-31 (Sun, 31 Jan 2016)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/push_check.hpp
    M src/unit.hpp

  Log Message:
  -----------
  add alignment getter/setter for lua units


  Commit: 08236f8953b0ef02ea34871b6a02ba0690e30e3e
      https://github.com/wesnoth/wesnoth/commit/08236f8953b0ef02ea34871b6a02ba0690e30e3e
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-01-31 (Sun, 31 Jan 2016)

  Changed paths:
    M data/lua/wml/items.lua
    M src/display.cpp
    M src/display.hpp
    M src/editor/action/mouse/mouse_action_item.cpp
    M src/overlay.hpp
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  added name= attribute to [item]

name= has no effect but can be used to delete the item. I also changed
[item] to automatically create an id (in case no id was given) and
return that (only usable if called from lua).

I used the id= field from overlay class for this, it was previously only
used by the editor. Not sure if it is a good idea to reuse the id field.


Compare: https://github.com/wesnoth/wesnoth/compare/807d7f3a1251...08236f8953b0


More information about the Commits mailing list