[wesnoth-commits] [wesnoth/wesnoth] 263e9d: Replace MAKE_ENUM of CONTROLLER with something eas...

Pentarctagon noreply at github.com
Tue Jan 25 22:57:44 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 263e9d7d4f37dab3c108cf75ac6455af21a13d45
      https://github.com/wesnoth/wesnoth/commit/263e9d7d4f37dab3c108cf75ac6455af21a13d45
  Author: Pentarctagon <pentarctagon at tutamail.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

  Changed paths:
    M src/editor/map/map_context.cpp
    M src/editor/map/map_context.hpp
    M src/game_board.cpp
    M src/game_board.hpp
    M src/game_initialization/connect_engine.cpp
    M src/game_initialization/create_engine.cpp
    M src/game_state.cpp
    M src/gui/dialogs/editor/edit_side.cpp
    M src/gui/dialogs/editor/edit_side.hpp
    M src/gui/dialogs/game_stats.cpp
    M src/gui/dialogs/multiplayer/mp_join_game.cpp
    M src/menu_events.cpp
    M src/playsingle_controller.cpp
    M src/playturn.cpp
    M src/save_index.cpp
    M src/saved_game.cpp
    M src/scripting/lua_team.cpp
    M src/server/wesnothd/game.cpp
    M src/server/wesnothd/game.hpp
    M src/side_filter.cpp
    A src/string_enums/enum_base.hpp
    A src/string_enums/side_controller.hpp
    M src/team.cpp
    M src/team.hpp

  Log Message:
  -----------
  Replace MAKE_ENUM of CONTROLLER with something easier to use.

CONTROLLER is now defined in a single small header that can be easily read without needing to look through a bunch of Boost macros to figure out how it all works. Using the string values of the enum is now also much simpler since they're just constants of the side_controller class.





More information about the Commits mailing list