VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
IPluginLanguages.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, one table for every plugin. The host clears a slot when it changes hands. */
10{
11 /** Empty when no plugin has set one. */
12 virtual std::string_view Language(int slot) const = 0;
13 /** Empty clears it. */
14 virtual void SetLanguage(int slot, std::string_view lang) = 0;
15
16protected:
17 ~IPluginLanguages() = default;
18};
19
20} // namespace VoltMod
static std::string ReadFile(const std::filesystem::path &path)
Definition Loader.cpp:56
virtual std::string_view Language(int slot) const =0
virtual void SetLanguage(int slot, std::string_view lang)=0