|
LEAP Documentation 40220
Documentation for the LEAP project
|
#include <VivoxGameInstance.h>
Public Member Functions | |
| UVivoxGameInstance () | |
| virtual void | Init () override |
| virtual void | Shutdown () override |
| void | OnClientTravel (const FString &PendingURL, ETravelType TravelType, bool bIsSeamlessTravel) |
| virtual const FString | GetPlatformAccountID () |
| float | GetParticipantVolume () const |
| bool | IsUsingPushToTalk () const |
| void | UpdateParticipantVolume (const float Volume) |
| void | UpdatePushToTalk (const bool bNewPushToTalk) |
| virtual bool | Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Out= *GLog) override |
| Runtime console commands. More... | |
| virtual void | InitBeaconHost () override |
| virtual void | InitBeaconClient (const FOnlineSessionSearchResult &DesiredHost) override |
| virtual void | InitBeaconClientForServerPlayer () override |
| void | BindLoginSessionHandlers (bool DoBind, ILoginSession &LoginSession) |
| Bind or unbind event handlers for ILoginSession property changes. More... | |
| void | BindChannelSessionHandlers (bool DoBind, IChannelSession &ChannelSession) |
| Bind or unbind event handlers for IChannelSession property changes. More... | |
| VivoxCoreError | Initialize (int logLevel) |
| void | Uninitialize () |
| VivoxCoreError | Login (const FString &PlayerName) |
| void | ReLog () |
| void | Logout () |
| void | ReJoinVoiceChannels () |
| void | ReJoinLastKnownSquadChannel () |
| void | RejoinPartyVoiceChannel () |
| VivoxCoreError | JoinVoiceChannels (FString OnlineSessionId, int32 TeamNum=-1) |
| VivoxCoreError | JoinVoiceChannels (FString OnlineSessionId, int32 TeamNum, bool bUseOpenMic) |
| VivoxCoreError | Join (ChannelType Type, bool IsOpenMic, FString ChannelName) |
| VivoxCoreError | MultiChanPushToTalk (bool PTTKeyPressed) |
| void | LeaveVoiceChannels (FVoiceChannelInfo Exception=FVoiceChannelInfo()) |
| void | LeaveVoiceChannel (FVoiceChannelInfo ChannelToLeave) |
| void | Update3DPosition (APawn *Pawn) |
| void | MutePlayerByPlayerState (const class AProjectXPlayerState *PlayerState, bool bToggle) |
| void | OnLoginSessionStateChanged (LoginState State) |
| void | OnChannelParticipantAdded (const IParticipant &Participant) |
| void | OnChannelParticipantRemoved (const IParticipant &Participant) |
| void | OnChannelParticipantUpdated (const IParticipant &Participant) |
| void | OnChannelAudioStateChanged (const IChannelConnectionState &State) |
| void | OnChannelTextStateChanged (const IChannelConnectionState &State) |
| void | OnChannelTextMessageReceived (const IChannelTextMessage &Message) |
| virtual bool | IsInitialized () |
| virtual bool | IsLoggedIn () |
| TSharedPtr< IChannelSession > | GetChannelSessionForRoster () |
Static Public Member Functions | |
| static FString | GetVivoxSafeName (const FString BaseName) |
| static FString | GetVivoxSafePlayerName (const FString BaseName) |
| static APlayerState * | GetPlayerStateByVivoxName (const UObject *WorldContextObject, UPARAM(ref) const FString &ID) |
Public Attributes | |
| FParticipantUpdated | OnParticipantUpdated |
| IClient * | VivoxVoiceClient |
| AccountId | LoggedInAccountID |
| bool | bInitialized |
| bool | bInitializing |
| bool | bLoggedIn |
| bool | bLoggingIn |
| bool | bRelogging |
| FVoiceChannelInfo | PartyVoiceChannel |
Protected Member Functions | |
| virtual void | OnPlayerStateEvent (ASteamBeaconPlayerState *InPlayerState) override |
| virtual void | OnSteamBeaconHostConnectionFailureEvent () override |
| UVivoxGameInstance::UVivoxGameInstance | ( | ) |
| void UVivoxGameInstance::BindChannelSessionHandlers | ( | bool | DoBind, |
| IChannelSession & | ChannelSession | ||
| ) |
Bind or unbind event handlers for IChannelSession property changes.
| DoBind | Whether to bind or unbind the handlers. |
| IChannelSession | Object for which to bind or unbind handlers. |
| void UVivoxGameInstance::BindLoginSessionHandlers | ( | bool | DoBind, |
| ILoginSession & | LoginSession | ||
| ) |
Bind or unbind event handlers for ILoginSession property changes.
| DoBind | Whether to bind or unbind the handlers. |
| ILoginSession | Object for which to bind or unbind handlers. |
|
overridevirtual |
Runtime console commands.
| TSharedPtr< IChannelSession > UVivoxGameInstance::GetChannelSessionForRoster | ( | ) |
| float UVivoxGameInstance::GetParticipantVolume | ( | ) | const |
|
virtual |
|
static |
|
static |
|
static |
|
overridevirtual |
Reimplemented in UGameInstanceLoadingScreen, and UProjectXGameInstance.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
| VivoxCoreError UVivoxGameInstance::Initialize | ( | int | logLevel | ) |
|
virtual |
|
virtual |
|
inline |
| VivoxCoreError UVivoxGameInstance::Join | ( | ChannelType | Type, |
| bool | IsOpenMic, | ||
| FString | ChannelName | ||
| ) |
| VivoxCoreError UVivoxGameInstance::JoinVoiceChannels | ( | FString | OnlineSessionId, |
| int32 | TeamNum, | ||
| bool | bUseOpenMic | ||
| ) |
| VivoxCoreError UVivoxGameInstance::JoinVoiceChannels | ( | FString | OnlineSessionId, |
| int32 | TeamNum = -1 |
||
| ) |
| void UVivoxGameInstance::LeaveVoiceChannel | ( | FVoiceChannelInfo | ChannelToLeave | ) |
| void UVivoxGameInstance::LeaveVoiceChannels | ( | FVoiceChannelInfo | Exception = FVoiceChannelInfo() | ) |
| VivoxCoreError UVivoxGameInstance::Login | ( | const FString & | PlayerName | ) |
| void UVivoxGameInstance::Logout | ( | ) |
| VivoxCoreError UVivoxGameInstance::MultiChanPushToTalk | ( | bool | PTTKeyPressed | ) |
| void UVivoxGameInstance::MutePlayerByPlayerState | ( | const class AProjectXPlayerState * | PlayerState, |
| bool | bToggle | ||
| ) |
| void UVivoxGameInstance::OnChannelAudioStateChanged | ( | const IChannelConnectionState & | State | ) |
| void UVivoxGameInstance::OnChannelParticipantAdded | ( | const IParticipant & | Participant | ) |
| void UVivoxGameInstance::OnChannelParticipantRemoved | ( | const IParticipant & | Participant | ) |
| void UVivoxGameInstance::OnChannelParticipantUpdated | ( | const IParticipant & | Participant | ) |
| void UVivoxGameInstance::OnChannelTextMessageReceived | ( | const IChannelTextMessage & | Message | ) |
| void UVivoxGameInstance::OnChannelTextStateChanged | ( | const IChannelConnectionState & | State | ) |
| void UVivoxGameInstance::OnClientTravel | ( | const FString & | PendingURL, |
| ETravelType | TravelType, | ||
| bool | bIsSeamlessTravel | ||
| ) |
| void UVivoxGameInstance::OnLoginSessionStateChanged | ( | LoginState | State | ) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| void UVivoxGameInstance::ReJoinLastKnownSquadChannel | ( | ) |
| void UVivoxGameInstance::RejoinPartyVoiceChannel | ( | ) |
| void UVivoxGameInstance::ReJoinVoiceChannels | ( | ) |
| void UVivoxGameInstance::ReLog | ( | ) |
|
overridevirtual |
Reimplemented in UProjectXGameInstance.
| void UVivoxGameInstance::Uninitialize | ( | ) |
| void UVivoxGameInstance::Update3DPosition | ( | APawn * | Pawn | ) |
Return if argument is invalid.
Return if we're not in a positional channel.
Update cached 3D position and orientation.
Return If there's no change from cached values.
Set new position and orientation in connected positional channel.
| void UVivoxGameInstance::UpdateParticipantVolume | ( | const float | Volume | ) |
| void UVivoxGameInstance::UpdatePushToTalk | ( | const bool | bNewPushToTalk | ) |
| bool UVivoxGameInstance::bInitialized |
| bool UVivoxGameInstance::bInitializing |
| bool UVivoxGameInstance::bLoggedIn |
| bool UVivoxGameInstance::bLoggingIn |
| bool UVivoxGameInstance::bRelogging |
| AccountId UVivoxGameInstance::LoggedInAccountID |
| FParticipantUpdated UVivoxGameInstance::OnParticipantUpdated |
| FVoiceChannelInfo UVivoxGameInstance::PartyVoiceChannel |
| IClient* UVivoxGameInstance::VivoxVoiceClient |