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
5
namespace
VoltMod
6
{
7
8
/** Each player's language, which @ref Translations reads and writes. Game thread only. */
9
class
PlayerLanguages
10
{
11
public
:
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
17
protected
:
18
~PlayerLanguages
() =
default
;
19
};
20
21
}
// namespace VoltMod
VoltMod::PlayerLanguages
Definition
PlayerLanguages.hpp:10
VoltMod::PlayerLanguages::Language
virtual std::string_view Language(int slot) const =0
VoltMod::PlayerLanguages::SetLanguage
virtual void SetLanguage(int slot, std::string_view lang)=0
VoltMod::PlayerLanguages::~PlayerLanguages
~PlayerLanguages()=default
VoltMod
Definition
Options.hpp:13
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
include
VoltMod
Core
Text
PlayerLanguages.hpp
Generated by
1.9.8