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
4#include <functional>
5#include <string_view>
6
7namespace 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 */
15using GameDataLookup = std::function<GameDataLocation(GameDataSection sections, std::string_view name)>;
16
17} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
std::function< GameDataLocation(GameDataSection sections, std::string_view name)> GameDataLookup