VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
HostPlayerLanguages.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <string_view>
6
7namespace VoltMod::Internal
8{
9
10/** @ref PlayerLanguages over the host's table, which Core cannot include. */
12{
13public:
14 explicit HostPlayerLanguages(IPluginLanguages& host) : _host(host) {}
15
16 std::string_view Language(int slot) const override { return _host.Language(slot); }
17 void SetLanguage(int slot, std::string_view lang) override { _host.SetLanguage(slot, lang); }
18
19private:
20 IPluginLanguages& _host;
21};
22
23} // namespace VoltMod::Internal
std::string_view Language(int slot) const override
void SetLanguage(int slot, std::string_view lang) override