Skip to content

Commit 0e7e762

Browse files
author
richelbilderbeek
committed
Update to new 'magic_enum' folder structure
1 parent 41bc64d commit 0e7e762

12 files changed

+18
-14
lines changed

chess_color.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
#include <iostream>
55
#include <sstream>
66

7-
8-
#include "../magic_enum/include/magic_enum.hpp" // https://github.com/Neargye/magic_enum
7+
#include "../magic_enum/include/magic_enum/magic_enum.hpp" // https://github.com/Neargye/magic_enum
98

109
std::vector<chess_color> get_all_chess_colors() noexcept
1110
{

controls_view_item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <algorithm>
44
#include <cassert>
55

6-
#include "../magic_enum/include/magic_enum.hpp"
6+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
77

88
std::vector<controls_view_item> get_all_controls_view_items() noexcept
99
{

game.pro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,10 @@ QT += core gui widgets
4444

4545
LIBS += -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
4646

47-
#INCLUDEPATH += ../magic_enum
48-
47+
# magic_enum, from https://github.com/Neargye/magic_enum
48+
#
49+
# Must allow for:
50+
#
51+
# include <magic_enum/magic_enum.hpp>
52+
#
53+
INCLUDEPATH += ../magic_enum/include

game_speed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <iostream>
66
#include <sstream>
77

8-
#include "../magic_enum/include/magic_enum.hpp" // https://github.com/Neargye/magic_enum
8+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
99

1010
std::vector<game_speed> get_all_game_speeds() noexcept
1111
{

lobby_view_item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <algorithm>
44
#include <cassert>
55

6-
#include "../magic_enum/include/magic_enum.hpp"
6+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
77

88
std::vector<lobby_view_item> get_all_lobby_view_items() noexcept
99
{

menu_view_item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <algorithm>
44
#include <cassert>
55

6-
#include "../magic_enum/include/magic_enum.hpp"
6+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
77

88
std::vector<menu_view_item> get_all_menu_view_items() noexcept
99
{

message_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "message_type.h"
22

3-
#include "../magic_enum/include/magic_enum.hpp"
3+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
44

55
#include <cassert>
66
#include <iostream>

options_view_item.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "options_view_item.h"
22

3-
#include "../magic_enum/include/magic_enum.hpp"
3+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
44

55
#include <algorithm>
66
#include <cassert>

piece_action_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <iostream>
55
#include <sstream>
66

7-
#include "../magic_enum/include/magic_enum.hpp"
7+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
88

99
std::vector<piece_action_type> get_all_piece_action_types() noexcept
1010
{

race.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <iostream>
66
#include <sstream>
77

8-
#include "../magic_enum/include/magic_enum.hpp" // https://github.com/Neargye/magic_enum
8+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
99

1010
std::vector<race> get_all_races() noexcept
1111
{

starting_position_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <iostream>
66
#include <sstream>
77

8-
#include "../magic_enum/include/magic_enum.hpp"
8+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
99

1010
std::vector<starting_position_type> get_all_starting_position_types() noexcept
1111
{

user_input_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "user_input_type.h"
22

3-
#include "../magic_enum/include/magic_enum.hpp"
3+
#include <magic_enum/magic_enum.hpp> // https://github.com/Neargye/magic_enum
44

55
user_input_type create_random_user_input_type(
66
std::default_random_engine& rng_engine

0 commit comments

Comments
 (0)