2017-01-20 08:36:52 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-19 16:23:59 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Playlist : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef void(*Callback)();
|
|
|
|
|
|
|
|
Playlist();
|
|
|
|
|
|
|
|
static void LoadPlaylist();
|
|
|
|
|
|
|
|
static std::string ReceivedPlaylistBuffer;
|
|
|
|
|
|
|
|
private:
|
|
|
|
static std::string CurrentPlaylistBuffer;
|
|
|
|
static std::unordered_map<const void*, std::string> MapRelocation;
|
|
|
|
|
2022-12-25 12:23:53 -05:00
|
|
|
static char* Com_ParseOnLine_Hk(const char** data_p);
|
2017-01-19 16:23:59 -05:00
|
|
|
|
2022-05-20 18:12:46 -04:00
|
|
|
static void PlaylistRequest(const Network::Address& address, const std::string& data);
|
2022-12-25 12:23:53 -05:00
|
|
|
static void PlaylistResponse(const Network::Address& address, const std::string& data);
|
2022-05-20 18:12:46 -04:00
|
|
|
static void PlaylistInvalidPassword(const Network::Address& address, const std::string& data);
|
2017-01-19 16:23:59 -05:00
|
|
|
|
2022-12-25 12:23:53 -05:00
|
|
|
static void MapNameCopy(char* dest, const char* src, int destsize);
|
|
|
|
static void SetMapName(const char* dvarName, const char* value);
|
2017-01-19 16:23:59 -05:00
|
|
|
static int GetMapIndex(const char* mapname);
|
|
|
|
};
|
|
|
|
}
|