Dayz 1.25
Dayz Code 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.

301 {
302 delete m_VONManager;
304 }
void VONManagerBase()
Definition VONManager.c:31
static ref VONManagerBase m_VONManager
Definition VONManager.c:277

Перекрестные ссылки 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
284 {
285 return m_VONManager;
286 }

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

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

◆ Init()

static void Init ( )
inlinestaticprivate

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

292 {
293 delete m_VONManager;
295 }
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
320 {
323 Class.CastTo(noa, gameOptions.GetOptionByType( OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER ));
324
325 return noa.ReadValue() <= GetGame().GetSoundScene().GetSilenceThreshold();
326 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition gameplay.c:1438
Definition EntityAI.c:95
proto native CGame GetGame()
OptionAccessType
C++ OptionAccessType.
Definition gameplay.c:1217
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
311 {
312 return m_VONManager.IsVonToggled();
313 }

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

Поля

◆ m_VONManager

ref VONManagerBase m_VONManager = new VONManagerBase()
staticprivate

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


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