2016-01-01 20:28:09 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Playlist : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef void(*Callback)();
|
|
|
|
|
|
|
|
Playlist();
|
2016-08-15 10:40:30 -04:00
|
|
|
~Playlist();
|
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-01-01 20:28:09 -05:00
|
|
|
const char* GetName() { return "Playlist"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2016-01-01 20:28:09 -05:00
|
|
|
|
|
|
|
static void LoadPlaylist();
|
|
|
|
|
2016-01-03 09:14:44 -05:00
|
|
|
static std::string ReceivedPlaylistBuffer;
|
|
|
|
|
2016-01-01 20:28:09 -05:00
|
|
|
private:
|
|
|
|
static std::string CurrentPlaylistBuffer;
|
2016-11-02 13:44:20 -04:00
|
|
|
static std::map<const void*, std::string> MapRelocation;
|
|
|
|
|
2016-01-01 20:28:09 -05:00
|
|
|
static DWORD StorePlaylistStub(const char** buffer);
|
|
|
|
|
|
|
|
static void PlaylistRequest(Network::Address address, std::string data);
|
|
|
|
static void PlaylistReponse(Network::Address address, std::string data);
|
2016-11-02 13:44:20 -04:00
|
|
|
|
|
|
|
static void MapNameCopy(char *dest, const char *src, int destsize);
|
|
|
|
static void SetMapName(const char* cvar, const char* value);
|
2016-11-02 14:19:09 -04:00
|
|
|
static int GetMapIndex(const char* mapname);
|
2016-01-01 20:28:09 -05:00
|
|
|
};
|
|
|
|
}
|