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
3
#include <
VoltMod/Engine/GameData/GameDataLocation.hpp
>
4
#include <string_view>
5
6
namespace
VoltMod
7
{
8
9
/** Gamedata the host resolved once before any plugin loaded; fixed after startup. Game thread only. */
10
struct
IPluginGameData
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
15
protected
:
16
~IPluginGameData
() =
default
;
17
};
18
19
}
// namespace VoltMod
GameDataLocation.hpp
VoltMod
Definition
Options.hpp:13
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
VoltMod::GameDataSection
GameDataSection
Definition
GameDataLocation.hpp:11
VoltMod::GameDataLocation
Definition
GameDataLocation.hpp:25
VoltMod::IPluginGameData
Definition
IPluginGameData.hpp:11
VoltMod::IPluginGameData::Lookup
virtual GameDataLocation Lookup(GameDataSection sections, std::string_view name)=0
VoltMod::IPluginGameData::~IPluginGameData
~IPluginGameData()=default
include
VoltMod
Host
IPluginGameData.hpp
Generated by
1.9.8