Mercurial > minori
comparison dep/animia/include/animia/player.h @ 156:cdf79282d647
dep/animia: add VERY early x11 window stuff
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 15 Nov 2023 18:04:04 -0500 |
| parents | bd439dd6ffc5 |
| children |
comparison
equal
deleted
inserted
replaced
| 155:d2bbb5773616 | 156:cdf79282d647 |
|---|---|
| 16 Default, | 16 Default, |
| 17 WebBrowser // unused | 17 WebBrowser // unused |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 struct Player { | 20 struct Player { |
| 21 PlayerType type = PlayerType::Default; | 21 PlayerType type = PlayerType::Default; |
| 22 std::string name; | 22 std::string name; |
| 23 std::string window_title_format; | 23 std::string window_title_format; |
| 24 std::vector<std::string> windows; | 24 std::vector<std::string> windows; |
| 25 std::vector<std::string> executables; | 25 std::vector<std::string> executables; |
| 26 std::vector<Strategy> strategies; | 26 std::vector<Strategy> strategies; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 bool ParsePlayersData(const std::string& data, std::vector<Player>& players); | 29 bool ParsePlayersData(const std::string& data, std::vector<Player>& players); |
| 30 bool ParsePlayersFile(const std::string& path, std::vector<Player>& players); | 30 bool ParsePlayersFile(const std::string& path, std::vector<Player>& players); |
| 31 | 31 |
