Data Structures | |
class | VONManagerBase |
class | VONManager |
Manager class which handles Voice-over-network functionality while player is connected to a server. More... | |
Functions | |
VONManagerBase Managed | VONManagerImplementation () |
void | VONManagerBase () |
void | HideVoiceNotification () |
Hides the VON notification completely and immediately. | |
void | ShowVoiceNotification (int level, bool fading) |
Shows the voice notification. | |
void | HandleInput (Input inp) |
Handles some VON related input. | |
void | OnVOIPThresholdChanged () |
Fires every time VOIP threshold value changes. | |
void | OnEvent (EventType eventTypeId, Param params) |
Handles VON-related events. | |
bool | IsVonToggled () |
void | ~VONManagerImplementation () |
private void | UpdateVoiceIcon () |
Variables | |
protected bool | m_VoNToggled |
ref ScriptInvoker | m_OnVonStateEvent |
ref ScriptInvoker | m_OnPartyChatChangedEvent |
override void HandleInput | ( | Input | inp | ) |
Handles some VON related input.
inp | input to handle |
References GetGame(), CGame::GetMission(), CGame::GetVoiceLevel(), Mission::IsVoNActive(), Input::LocalPress_ID(), CGame::SetVoiceLevel(), VONManagerBase::ShowVoiceNotification(), and UpdateVoiceIcon().
override void HideVoiceNotification | ( | ) |
Hides the VON notification completely and immediately.
bool IsVonToggled | ( | ) |
References GetGame(), Mission::GetMicrophoneIcon(), CGame::GetMission(), Mission::HideVoiceLevelWidgets(), and mission.
Handles VON-related events.
eventTypeId | event that fired |
params | event-specific parameters |
References Class::CastTo(), GetDayZGame(), GetGame(), CGame::GetMission(), VONManagerBase::HideVoiceNotification(), ScriptInvoker::Invoke(), VONManager::IsVoiceThresholdMinimum(), m_OnPartyChatChangedEvent, m_OnVonStateEvent, m_VoNToggled, mission, MPSessionPlayerReadyEventTypeID, PartyChatStatusChangedEventTypeID, Mission::SetVoNActive(), VONManagerBase::ShowVoiceNotification(), UpdateVoiceIcon(), VONStartSpeakingEventTypeID, VONStateEventTypeID, VONStopSpeakingEventTypeID, VONUserStartedTransmittingAudioEventTypeID, and VONUserStoppedTransmittingAudioEventTypeID.
override void OnVOIPThresholdChanged | ( | ) |
Fires every time VOIP threshold value changes.
References UpdateVoiceIcon().
Shows the voice notification.
level | the loudness of the player voice. 0 = whisper, 1 = normal, 2 = shout |
fading | specifies whether icon should slowly fade to invisibility after being displayed |
References GetGame(), Mission::GetMicrophoneIcon(), Mission::GetMicWidgetFadeTimer(), CGame::GetMission(), Mission::GetVoiceLevelTimers(), Mission::GetVoiceLevelWidgets(), and mission.
private void UpdateVoiceIcon | ( | ) |
References GetGame(), CGame::GetMission(), CGame::GetVoiceLevel(), VONManagerBase::HideVoiceNotification(), VONManager::IsVoiceThresholdMinimum(), Mission::IsVoNActive(), m_VoNToggled, mission, and VONManagerBase::ShowVoiceNotification().
Referenced by HandleInput(), OnEvent(), and OnVOIPThresholdChanged().
void VONManagerBase | ( | ) |
VONManagerBase Managed VONManagerImplementation | ( | ) |
Referenced by VONManager::Init().
void ~VONManagerImplementation | ( | ) |
References ScriptInvoker::Clear(), m_OnPartyChatChangedEvent, and m_OnVonStateEvent.
ref ScriptInvoker m_OnPartyChatChangedEvent |
Referenced by OnEvent(), and ~VONManagerImplementation().
ref ScriptInvoker m_OnVonStateEvent |
Referenced by OnEvent(), and ~VONManagerImplementation().
protected bool m_VoNToggled |
Referenced by OnEvent(), and UpdateVoiceIcon().