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

#include <HostPlayerLanguages.hpp>

+ Inheritance diagram for VoltMod::Internal::HostPlayerLanguages:

Public Member Functions

 HostPlayerLanguages (IPluginLanguages &host)
 
std::string_view Language (int slot) const override
 
void SetLanguage (int slot, std::string_view lang) override
 

Additional Inherited Members

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

Detailed Description

PlayerLanguages over the host's table, which Core cannot include.

Definition at line 11 of file HostPlayerLanguages.hpp.

Constructor & Destructor Documentation

◆ HostPlayerLanguages()

VoltMod::Internal::HostPlayerLanguages::HostPlayerLanguages ( IPluginLanguages &  host)
inlineexplicit

Definition at line 14 of file HostPlayerLanguages.hpp.

Member Function Documentation

◆ Language()

std::string_view VoltMod::Internal::HostPlayerLanguages::Language ( int  slot) const
inlineoverridevirtual

◆ SetLanguage()

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

Empty clears it.

Implements VoltMod::PlayerLanguages.

Definition at line 17 of file HostPlayerLanguages.hpp.

References VoltMod::ReadFile(), and VoltMod::IPluginLanguages::SetLanguage().


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