view 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
line wrap: on
line source

#ifndef __animia__animia__player_h
#define __animia__animia__player_h

#include <string>
#include <vector>

namespace animia {

enum class Strategy {
	WindowTitle,
	OpenFiles,
	UiAutomation // unused
};

enum class PlayerType {
	Default,
	WebBrowser // unused
};

struct Player {
		PlayerType type = PlayerType::Default;
		std::string name;
		std::string window_title_format;
		std::vector<std::string> windows;
		std::vector<std::string> executables;
		std::vector<Strategy> strategies;
};

bool ParsePlayersData(const std::string& data, std::vector<Player>& players);
bool ParsePlayersFile(const std::string& path, std::vector<Player>& players);

} // namespace animia

#endif // __animia__animia__player_h