iw4x-client/src/Components/Modules/VisionFile.hpp

20 lines
511 B
C++
Raw Normal View History

2022-06-30 15:37:47 -04:00
#pragma once
namespace Components
{
class VisionFile : public Component
{
public:
VisionFile();
private:
2022-07-23 16:16:26 -04:00
static std::vector<std::string> DvarExceptions;
static std::unordered_map<std::string, std::string> VisionReplacements;
2022-06-30 15:37:47 -04:00
2022-07-23 16:16:26 -04:00
static bool ApplyExemptDvar(const char* dvarName, const char** buffer, const char* filename);
2022-06-30 15:37:47 -04:00
2022-07-23 16:16:26 -04:00
static bool LoadVisionSettingsFromBuffer(const char* buffer, const char* filename, Game::visionSetVars_t* settings);
2022-06-30 15:37:47 -04:00
static bool LoadVisionSettingsFromBuffer_Stub();
};
}