VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
GameDataLookup.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
VoltMod/Engine/GameData/GameDataLocation.hpp
>
4
#include <functional>
5
#include <string_view>
6
7
namespace
VoltMod
8
{
9
10
/**
11
* Reads what gamedata holds for @p name, when @p sections admits the section holding it.
12
*
13
* Injected so @ref Bindings::Bind is unit-tested against a plain lambda; the app passes the host's lookup.
14
*/
15
using
GameDataLookup
= std::function<
GameDataLocation
(
GameDataSection
sections
, std::string_view name)>;
16
17
}
// 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::GameDataLookup
std::function< GameDataLocation(GameDataSection sections, std::string_view name)> GameDataLookup
Definition
GameDataLookup.hpp:15
VoltMod::GameDataSection
GameDataSection
Definition
GameDataLocation.hpp:11
VoltMod::GameDataLocation
Definition
GameDataLocation.hpp:25
include
VoltMod
Engine
GameData
GameDataLookup.hpp
Generated by
1.9.8