VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::LanguageTable Class Referencefinal

#include <LanguageTable.hpp>

+ Inheritance diagram for VoltMod::LanguageTable:

Public Member Functions

std::string_view Language (int slot) const override
 
void SetLanguage (int slot, std::string_view lang) override
 
void Reset (int slot)
 

Additional Inherited Members

- Protected Member Functions inherited from VoltMod::IPluginLanguages
 ~IPluginLanguages ()=default
 

Detailed Description

The host's IPluginLanguages. PluginRegistry resets a slot on connect and after disconnect.

Definition at line 13 of file LanguageTable.hpp.

Member Function Documentation

◆ Language()

std::string_view VoltMod::LanguageTable::Language ( int  slot) const
inlineoverridevirtual

Empty when no plugin has set one.

Implements VoltMod::IPluginLanguages.

Definition at line 16 of file LanguageTable.hpp.

References VoltMod::IsValidSlot(), and VoltMod::ReadFile().

◆ Reset()

void VoltMod::LanguageTable::Reset ( int  slot)
inline

◆ SetLanguage()

void VoltMod::LanguageTable::SetLanguage ( int  slot,
std::string_view  lang 
)
inlineoverridevirtual

Empty clears it.

Implements VoltMod::IPluginLanguages.

Definition at line 21 of file LanguageTable.hpp.

References VoltMod::IsValidSlot(), and VoltMod::ReadFile().


The documentation for this class was generated from the following file: