Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem
References
| Module | OnlineSubsystem |
| Header | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineSessionSettings.h |
| Include | #include "OnlineSessionSettings.h" |
Syntax
class FOnlineSessionSettings
Remarks
Container for all settings describing a single online session
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowInvites | Whether the match allows invitations for this session or not | |
| bool | bAllowJoinInProgress | Whether joining in progress is allowed or not | |
| bool | bAllowJoinViaPresence | Whether joining via player presence is allowed or not | |
| bool | bAllowJoinViaPresenceFriendsOnly | Whether joining via player presence is allowed for friends only or not | |
| bool | bAntiCheatProtected | Whether the server employs anti-cheat (punkbuster, vac, etc) | |
| bool | bIsDedicated | Whether the server is dedicated or player hosted | |
| bool | bIsLANMatch | This game will be lan only and not be visible to external players | |
| bool | bShouldAdvertise | Whether this match is publicly advertised on the online service | |
| int32 | BuildUniqueId | Used to keep different builds from seeing each other during searches | |
| bool | bUseLobbiesIfAvailable | Whether to prefer lobbies APIs if the platform supports them | |
| bool | bUseLobbiesVoiceChatIfAvailable | Whether to create (and auto join) a voice chat room for the lobby, if the platform supports it | |
| bool | bUsesPresence | Whether to display user presence information or not | |
| bool | bUsesStats | Whether the match should gather stats or not | |
| TUniqueNetIdMap< FSessionSettings > | MemberSettings | Map of custom settings per session member (Not currently used by every OSS) | |
| int32 | NumPrivateConnections | The number of connections that are private (invite/password) only | |
| int32 | NumPublicConnections | The number of publicly available connections advertised | |
| FString | SessionIdOverride | Manual override for the Session Id instead of having one assigned by the backend. | |
| FSessionSettings | Settings | Array of custom session settings |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor, used when serializing a network packet | |||
FOnlineSessionSettings
(
const FOnlineSessionSettings& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Gets a key value pair combination that defines a session setting | ||
| EOnlineDataAdvertisementType::Type | GetAdvertisementType
(
FName Key |
Retrieve a session setting's advertisement type | |
| int32 | Retrieve a session setting's ID | ||
| bool | Removes a key value pair combination | ||
| void | Set
(
FName Key, |
Sets a key value pair combination that defines a session setting from an existing session setting | |
| void | Set
(
FName Key, |
Sets a key value pair combination that defines a session setting | |
| void | Set
(
FName Key, |
Sets a key value pair combination that defines a session setting with an ID |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FOnlineSessionSettings & | |||
| FOnlineSessionSettings & | operator=
(
const FOnlineSessionSettings& |