|
VoltMod
C++23 framework for CS2 server plugins
|
#include <ClientLanguage.hpp>
Public Member Functions | |
| ClientLanguage (PlayerManager &players, ClientConVars &clientConVars, Translations &translations) | |
Gives a player with no language yet the one their Steam client runs in (cl_language). The language lives in the host, so the first plugin to hear back sets it for all; a pick made in a plugin's menu still wins.
Definition at line 14 of file ClientLanguage.hpp.
| VoltMod::Internal::ClientLanguage::ClientLanguage | ( | PlayerManager & | players, |
| ClientConVars & | clientConVars, | ||
| Translations & | translations | ||
| ) |
Definition at line 36 of file ClientLanguage.cpp.
References VoltMod::Answered, VoltMod::Internal::CodeFor(), VoltMod::Translations::PlayerLanguage(), VoltMod::ClientConVars::Query(), VoltMod::ReadFile(), and VoltMod::Translations::SetPlayerLanguage().