iw4x-client/src/Components/Modules/Playlist.hpp
2022-03-16 00:44:59 +00:00

31 lines
827 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 DWORD StorePlaylistStub(const char** buffer);
static void PlaylistRequest(Network::Address address, const std::string& data);
static void PlaylistReponse(Network::Address address, const std::string& data);
static void PlaylistInvalidPassword(Network::Address address, const std::string& data);
static void MapNameCopy(char *dest, const char *src, int destsize);
static void SetMapName(const char* cvar, const char* value);
static int GetMapIndex(const char* mapname);
};
}