Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Net
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UOnlineEngineInterface
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Net/OnlineEngineInterface.h |
Include | #include "Net/OnlineEngineInterface.h" |
Syntax
class UOnlineEngineInterface : public UObject
Remarks
Interface class between engine and OnlineSubsystem to remove dependencies between the two The real work is implemented in UOnlineEngineInterfaceImpl in OnlineSubsystemUtils The expectation is that this basic group of functions will not expand/change and that OnlineSubsystem can remain independent of the engine
Games should not use this interface, use the OnlineSubsystem plugins directly
Better functionality descriptions can be found in the OnlineSubsystem interfaces
Adding code here is discouraged, there is probably a better way, talk to the OGS team
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UOnlineEngineInterface
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Auto login a given player based on credentials specified on the command line | |
![]() ![]() |
void | BindToExternalUIOpening
(
const FOnlineExternalUIChanged& Delegate |
Bind a delegate to the opening/closing of an online platform's external UI |
![]() ![]() |
void | ClearVoicePackets
(
UWorld* World |
Clears all voice packets currently queued for send |
![]() ![]() |
bool | CloseWebURL () |
Closes the currently active web external UI |
![]() ![]() |
FUniqueNetIdWrapper | CreateUniquePlayerIdWrapper
(
const FString& Str, |
|
![]() ![]() |
void | DestroyOnlineSubsystem
(
FName OnlineIdentifier |
Destroy a given online subsystem |
![]() ![]() |
bool | DoesInstanceExist
(
FName OnlineIdentifier |
|
![]() ![]() |
bool | DoesSessionExist
(
UWorld* World, |
|
![]() ![]() |
void | DumpChatState
(
UWorld* World |
Dump chat state to the log |
![]() ![]() |
void | DumpPartyState
(
UWorld* World |
Dump party state to the log |
![]() ![]() |
void | DumpSessionState
(
UWorld* World |
DebugDump session state to the log |
![]() ![]() |
void | DumpVoiceState
(
UWorld* World |
Dump voice state to the log |
![]() ![]() |
void | EndSession
(
UWorld* World, |
End a given named online session |
![]() ![]() |
UOnlineEngineInterface * | Get () |
|
![]() ![]() ![]() |
FName | Returns the name of the default online subsystem, generally the DefaultPlatformService config value. | |
![]() ![]() |
TSharedPtr< FVoicePacket > | GetLocalPacket
(
UWorld* World, |
Voice |
![]() ![]() |
int32 | GetNumLocalTalkers
(
UWorld* World |
|
![]() ![]() |
int32 | ||
![]() ![]() |
FName | GetOnlineIdentifier
(
FWorldContext& WorldContext |
|
![]() ![]() |
FString | GetPlayerNickname
(
UWorld* World, |
|
![]() ![]() |
bool | GetPlayerPlatformNickname
(
UWorld* World, |
|
![]() ![]() ![]() |
uint8 | GetReplicationHashForSubsystem
(
FName InSubsystemName |
Utils Return the replication hash for a given subsystem |
![]() ![]() |
bool | GetResolvedConnectString
(
UWorld* World, |
|
![]() ![]() |
bool | GetSessionJoinability
(
UWorld* World, |
|
![]() ![]() ![]() |
FName | GetSubsystemFromReplicationHash
(
uint8 InHash |
Return the name of the online subsystem associated with this hash |
![]() ![]() |
FUniqueNetIdWrapper | GetUniquePlayerIdWrapper
(
UWorld* World, |
|
![]() ![]() ![]() |
bool | IsCompatibleUniqueNetId
(
const FUniqueNetIdWrapper& InUniqueNetId |
Returns whether the unique net id is compatible |
![]() ![]() |
bool | Subsystem | |
![]() ![]() |
bool | IsLoggedIn
(
UWorld* World, |
|
![]() ![]() |
void | LoginPIEInstance
(
FName OnlineIdentifier, |
Login a local user to the online subsystem before starting a Play In Editor (PIE) instance, using credentials stored in the editor |
![]() ![]() |
bool | MuteRemoteTalker
(
UWorld* World, |
Mute a remote user for a given local player |
![]() ![]() |
void | RegisterPlayer
(
UWorld* World, |
Register a given player with the online session |
![]() ![]() |
TSharedPtr< FVoicePacket > | SerializeRemotePacket
(
UWorld* World, |
|
![]() ![]() |
void | SetForceDedicated
(
FName OnlineIdentifier, |
Force the online subsystem to treat itself like a dedicated server |
![]() ![]() |
void | SetShouldTryOnlinePIE
(
bool bShouldTry |
Enable/Disable online PIE at runtime |
![]() ![]() |
void | ShowAchievementsUI
(
UWorld* World, |
Show an online external achievements UI if applicable to the platform |
![]() ![]() |
void | ShowLeaderboardUI
(
UWorld* World, |
Show an online external leaderboard UI if applicable to the platform |
![]() ![]() |
void | ShowWebURL
(
const FString& CurrentURL, |
Displays a web page in the external UI |
![]() ![]() |
void | ShutdownOnlineSubsystem
(
FName OnlineIdentifier |
Shut down a given online subsystem |
![]() ![]() |
void | StartNetworkedVoice
(
UWorld* World, |
Start processing networked voice traffic for a given local user |
![]() ![]() |
void | StartSession
(
UWorld* World, |
SessionStart a given named online session |
![]() ![]() |
void | StopNetworkedVoice
(
UWorld* World, |
Stop processing networked voice traffic for a given local user |
![]() ![]() |
bool | PIE Utilities | |
![]() ![]() |
bool | UnmuteRemoteTalker
(
UWorld* World, |
UnMute a remote user for a given local player |
![]() ![]() |
void | UnregisterPlayer
(
UWorld* World, |
Unregister a given player from the online session |
![]() ![]() |
void | UnregisterPlayers
(
UWorld* World, |
Unregister a given player from the online session |
![]() ![]() |
void | UpdateSessionJoinability
(
UWorld* World, |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FShowWebUrlParams | External UI |
Constants
Name | Description |
---|---|
Singleton | One and only instance of this class, should handle normal and PIE operations by disambiguating in the function calls themselves |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FUniqueNetIdPtr | CreateUniquePlayerId
(
const FString& Str, |
Use CreateUniquePlayerIdWrapper |
![]() ![]() |
FString | GetPlayerNickname
(
UWorld* World, |
Use GetPlayerNickname with FUniqueNetIdWrapper |
![]() ![]() |
FUniqueNetIdPtr | GetUniquePlayerId
(
UWorld* World, |
Use GetUniquePlayerIdWrapper |
![]() ![]() ![]() |
bool | IsCompatibleUniqueNetId
(
const FUniqueNetId& InUniqueNetId |
Use IsCompatibleUniqueNetId with FUniqueNetIdWrapper |
![]() ![]() |
bool | MuteRemoteTalker
(
UWorld* World, |
Use MuteRemoteTalker with FUniqueNetIdWrapper |
![]() ![]() |
void | RegisterPlayer
(
UWorld* World, |
Use RegisterPlayer with FUniqueNetIdWrapper |
![]() ![]() |
bool | UnmuteRemoteTalker
(
UWorld* World, |
Use UnmuteRemoteTalker with FUniqueNetIdWrapper |
![]() ![]() |
void | UnregisterPlayer
(
UWorld* World, |
Use UnregisterPlayer with FUniqueNetIdWrapper |
![]() ![]() |
void | UnregisterPlayers
(
UWorld* World, |
Use UnregisterPlayers with FUniqueNetIdWrapper |