DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс VONManager

Manager class which handles Voice-over-network functionality while player is connected to a server. Подробнее...

Закрытые статические члены

static VONManagerBase GetInstance ()
 Main way to access VONManager functionality from script.
 
static void Init ()
 Initializes VONManager, runs when user first connects to a server.
 
static void CleanupInstance ()
 Uninitializes VONManager, runs when user disconnects from server.
 
static bool IsVONToggled ()
 Specifies whether VON mode is toggled or not.
 
static bool IsVoiceThresholdMinimum ()
 Specifies whether user's voice activation threshold value is equal to the minimum voice activation threshold value.
 

Закрытые статические данные

static ref VONManagerBase m_VONManager = new VONManagerBase()
 

Подробное описание

Manager class which handles Voice-over-network functionality while player is connected to a server.

Методы

◆ CleanupInstance()

static void CleanupInstance ( )
inlinestaticprivate

Uninitializes VONManager, runs when user disconnects from server.

310 {
311 delete m_VONManager;
313 }
void VONManagerBase()
Definition VONManager.c:31
static ref VONManagerBase m_VONManager
Definition VONManager.c:286

Перекрестные ссылки m_VONManager и VONManagerBase().

Используется в CGame::~CGame().

◆ GetInstance()

static VONManagerBase GetInstance ( )
inlinestaticprivate

Main way to access VONManager functionality from script.

Возвращает
Instance of VONManagerImplementation if logged on to server, or VONManagerBase otherwise
293 {
294 return m_VONManager;
295 }

Перекрестные ссылки m_VONManager.

Используется в CGame::OnEvent(), MissionBase::OnUpdate() и ScriptedWidgetEventHandler::OptionsMenuSounds().

◆ Init()

static void Init ( )
inlinestaticprivate

Initializes VONManager, runs when user first connects to a server.

301 {
302 delete m_VONManager;
304 }
VONManagerBase Managed VONManagerImplementation()
Definition VONManager.c:26

Перекрестные ссылки m_VONManager и VONManagerImplementation().

Используется в CGame::CGame().

◆ IsVoiceThresholdMinimum()

static bool IsVoiceThresholdMinimum ( )
inlinestaticprivate

Specifies whether user's voice activation threshold value is equal to the minimum voice activation threshold value.

Возвращает
True if threshold minimum, false otherwise
329 {
332 Class.CastTo(noa, gameOptions.GetOptionByType( OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER ));
333
334 return noa.ReadValue() <= GetGame().GetSoundScene().GetSilenceThreshold();
335 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition gameplay.c:1455
Definition EntityAI.c:95
proto native CGame GetGame()
OptionAccessType
C++ OptionAccessType.
Definition gameplay.c:1218
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo() и GetGame().

Используется в OnEvent() и UpdateVoiceIcon().

◆ IsVONToggled()

static bool IsVONToggled ( )
inlinestaticprivate

Specifies whether VON mode is toggled or not.

Возвращает
True if in Voice Activation mode, False if in Push-to-Talk mode
320 {
321 return m_VONManager.IsVonToggled();
322 }

Перекрестные ссылки m_VONManager.

Поля

◆ m_VONManager

ref VONManagerBase m_VONManager = new VONManagerBase()
staticprivate

Используется в CleanupInstance(), GetInstance(), Init() и IsVONToggled().


Объявления и описания членов класса находятся в файле: