0
|
1 #ifndef ANIMONE_ANIMONE_PLAYER_H_
|
|
2 #define ANIMONE_ANIMONE_PLAYER_H_
|
|
3
|
|
4 #include <string>
|
|
5 #include <vector>
|
|
6
|
|
7 namespace animone {
|
|
8
|
|
9 enum class Strategy {
|
|
10 WindowTitle,
|
|
11 OpenFiles,
|
|
12 UiAutomation // unused
|
|
13 };
|
|
14
|
|
15 enum class PlayerType {
|
|
16 Default,
|
|
17 WebBrowser // unused
|
|
18 };
|
|
19
|
|
20 struct Player {
|
|
21 PlayerType type = PlayerType::Default;
|
|
22 std::string name;
|
|
23 std::string window_title_format;
|
|
24 std::vector<std::string> windows;
|
|
25 std::vector<std::string> executables;
|
|
26 std::vector<Strategy> strategies;
|
|
27 };
|
|
28
|
|
29 bool ParsePlayersData(const std::string& data, std::vector<Player>& players);
|
|
30 bool ParsePlayersFile(const std::string& path, std::vector<Player>& players);
|
|
31
|
|
32 } // namespace animone
|
|
33
|
|
34 #endif // ANIMONE_ANIMONE_PLAYER_H_ |