iw4x-client/src/Components/Modules/Playlist.hpp
2022-12-25 18:23:53 +01:00

31 lines
854 B
C++

#pragma once
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;
static char* Com_ParseOnLine_Hk(const char** data_p);
static void PlaylistRequest(const Network::Address& address, const std::string& data);
static void PlaylistResponse(const Network::Address& address, const std::string& data);
static void PlaylistInvalidPassword(const Network::Address& address, const std::string& data);
static void MapNameCopy(char* dest, const char* src, int destsize);
static void SetMapName(const char* dvarName, const char* value);
static int GetMapIndex(const char* mapname);
};
}