VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
IPluginGameData.hpp
Go to the documentation of this file.
1#pragma once
2
4#include <string_view>
5
6namespace VoltMod
7{
8
9/** Gamedata the host resolved once before any plugin loaded; fixed after startup. Game thread only. */
11{
12 /** What the host resolved for @p name, when @p sections admits the section holding it. */
13 virtual GameDataLocation Lookup(GameDataSection sections, std::string_view name) = 0;
14
15protected:
16 ~IPluginGameData() = default;
17};
18
19} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
virtual GameDataLocation Lookup(GameDataSection sections, std::string_view name)=0