VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
PlayerLanguages.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string_view>
4
5namespace VoltMod
6{
7
8/** Each player's language, which @ref Translations reads and writes. Game thread only. */
10{
11public:
12 virtual std::string_view Language(int slot) const = 0;
13
14 /** Empty clears it. */
15 virtual void SetLanguage(int slot, std::string_view lang) = 0;
16
17protected:
18 ~PlayerLanguages() = default;
19};
20
21} // namespace VoltMod
virtual std::string_view Language(int slot) const =0
virtual void SetLanguage(int slot, std::string_view lang)=0
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56