USocialParty

Party game state that contains all information relevant to the communication within a party Keeps all players in sync with the state of the party and its individual members

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Party

Header

/Engine/Plugins/Online/OnlineFramework/Source/Party/Public/Party/SocialParty.h

Include

#include "Party/SocialParty.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Abstract, Within=SocialManager, Config=Game, Transient)
class USocialParty : public UObject

Remarks

Party game state that contains all information relevant to the communication within a party Keeps all players in sync with the state of the party and its individual members

Variables

Name Description

Protected variable

FPartyDataRepli...

 

PartyDataReplicator

Child classes MUST call EstablishRepDataInstance() on this using their member rep data struct instance

Protected variable UProperty

TSubclassOf< AP...

 

ReservationBeaconClientClass

Reservation beacon class for getting server approval for new party members while in a game

Protected variable UProperty

TSubclassOf< AS...

 

SpectatorBeaconClientClass

Spectator beacon class for getting server approval for new spectators while in a game

Constructors

Name Description

Public function

USocialParty()

Functions

Name Description

Protected function Const

bool

 

ApplyCrossplayRestriction

(
    FPartyJoinApproval& JoinApproval,
    const FUserPlatform& Platform,
    const FOnlinePartyData& JoinData
)

Protected function Const

bool

 

CanInviteUser

(
    const USocialUser& User
)

Protected function Virtual Const

bool

 

CanInviteUserInternal

(
    const USocialUser& User
)

Virtual versions of the package-scoped "CanX" methods above, as a virtual declared within package scoping cannot link (exported public, imported protected)

Protected function Const

bool

 

CanKickMember

(
    const UPartyMember& PartyMember
)

Protected function Virtual Const

bool

 

CanKickMemberInternal

(
    const UPartyMember& PartyMember
)

Protected function Const

bool

 

CanPromoteMember

(
    const UPartyMember& PartyMember
)

Protected function Virtual Const

bool

 

CanPromoteMemberInternal

(
    const UPartyMember& PartyMember
)

Protected function

void

 

CleanupReservationBeacon()

Protected function

void

 

CleanupSpectatorBeacon()

Protected function

void

 

ConnectToReservationBeacon()

Create a reservation beacon and connect to the server to get approval for new party members Only relevant while in an active game, not required while pre lobby / game

Protected function

void

 

ConnectToSpectatorBeacon()

Create a spectator beacon and connect to the server to get approval for new spectators

Public function Const

bool

 

ContainsUser

(
    const USocialUser& User
)

Protected function

APartyBeacon...

 

CreateReservationBeaconClient()

Protected function

ASpectatorBe...

 

CreateSpectatorBeaconClient()

Protected function Virtual Const

FPartyJoinDe...

 

DetermineCurrentJoinability()

Determines the reason why, if at all, this party is currently flat-out unjoinable

Public function Virtual

void

 

DisconnectParty()

Protected function Virtual Const

FPartyJoinAp...

 

EvaluateJIPRequest

(
    const FUniqueNetId& PlayerId
)

Determines the joinability of the game a party is in for JoinInProgress

Protected function Virtual Const

FPartyJoinAp...

 

EvaluateJoinRequest

(
    const TArray< IOnlinePartyUserPendi...,
    bool bFromJoinRequest
)

Determines the joinability of this party for a group of users requesting to join

Public function Const

FChatRoomId

 

GetChatRoomId()

Protected function

FPartyConfig...

 

GetCurrentConfiguration()

Protected function Virtual Const

TSubclassOf<...

 

GetDesiredMemberClass

(
    bool bLocalPlayer
)

Override in child classes to specify the type of UPartyMember to create

Protected function Virtual Const

FPartyPrivac...

 

GetDesiredPrivacySettings()

Protected function Const

FName

 

GetGameSessionName()

Protected function

FPartyRepDat...

 

GetMutableRepData()

Public function Const

int32

 

GetNumPartyMembers()

Public function Const

EPartyState

 

GetOssPartyPreviousState()

Public function Const

EPartyState

 

GetOssPartyState()

Public function Const

MemberT &

 

GetOwningLocalMember()

Public function Const

ULocalPlayer...

 

GetOwningLocalPlayer()

Public function Const

const FUniqu...

 

GetOwningLocalUserId()

Public function Const

const FOnlin...

 

GetPartyId()

Public function Const

MemberT *...

 

GetPartyLeader()

Public function Const

const FUniqu...

 

GetPartyLeaderId()

Public function Const

int32

 

GetPartyMaxSize()

Public function Const

MemberT *...

 

GetPartyMember

(
    const FUniqueNetIdRepl& MemberId
)

Public function Const

TArray< Memb...

 

GetPartyMembers()

Public function Const

const FOnlin...

 

GetPartyTypeId()

Public function Const

const FParty...

 

GetPrivacySettings()

Public function Const

FPartyJoinDe...

 

GetPublicJoinability()

Public function Const

const FParty...

 

GetRepData()

Protected function Const

APartyBeacon...

 

GetReservationBeaconClient()

Public function Const

SocialManage...

 

GetSocialManager()

Protected function Const

ASpectatorBe...

 

GetSpectatorBeaconClient()

Protected function Virtual

void

 

HandlePartySystemStateChange

(
    EPartySystemState NewState
)

Protected function Virtual

void

 

HandlePrivacySettingsChanged

(
    const FPartyPrivacySettings& NewPr...
)

Protected function Const

bool

 

HasUserBeenInvited

(
    const USocialUser& User
)

User/member-specific actions that are best exposed on the individuals themselves, but best handled by the actual party (thus the package scoping)

Protected function

void

 

InitializeParty

(
    const TSharedRef< const FOnlinePart...
)

Protected function Virtual

void

 

InitializePartyInternal()

Protected function Virtual

void

 

InitializePartyRepData()

Only called when a new party is being created by the local player and they are responsible for the rep data.

Public function Const

bool

 

IsCurrentlyCrossplaying()

Protected function Const

bool

 

IsCurrentlyLeaving()

Protected function Const

bool

 

IsInitialized()

Protected function Const

bool

 

IsInRestrictedGameSession()

Public function Static

bool

 

IsJoiningDuringLoadEnabled()

Public function Const

bool

 

IsLeavingParty()

Public function Const

bool

 

IsLocalPlayerPartyLeader()

Public function Const

bool

 

IsNetDriverFromReservationBeacon

(
    const UNetDriver* InNetDriver
)

Is the specified net driver for our reservation beacon?

Public function Const

bool

 

IsPartyFull()

Public function Const

bool

 

IsPartyFunctionalityDegraded()

Public function Const

bool

 

IsPartyLeader

(
    const ULocalPlayer& LocalPlayer
)

Public function Const

bool

 

IsPartyLeaderLocal()

Public function Const

bool

 

IsPersistentParty()

Public function Virtual

void

 

LeaveParty

(
    const FOnLeavePartyAttemptComplete ...
)

Public function Const

FOnInviteSen...

 

OnInviteSent()

Protected function Virtual

void

 

OnInviteSentInternal

(
    ESocialSubsystem SubsystemType,
    const USocialUser& InvitedUser,
    bool bWasSuccessful
)

Protected function Virtual

void

 

OnLeftPartyInternal

(
    EMemberExitedReason Reason
)

Protected function Virtual

void

 

OnLocalPlayerIsLeaderChanged

(
    bool bIsLeader
)

Protected function Virtual

void

 

OnMemberCreatedInternal

(
    UPartyMember& NewMember
)

Public function Const

FOnPartyConf...

 

OnPartyConfigurationChanged()

Public function Const

FDisconnectP...

 

OnPartyDisconnected()

Public function Const

FOnPartyFunc...

 

OnPartyFunctionalityDegradedChanged()

Public function Const

FOnPartyJIPA...

 

OnPartyJIPApproved()

Public function Const

FLeavePartyE...

 

OnPartyLeaveBegin()

Public function Const

FLeavePartyE...

 

OnPartyLeft()

Public function Const

FOnPartyMemb...

 

OnPartyMemberConnectionStatusChanged()

Public function Const

FOnPartyMemb...

 

OnPartyMemberCreated()

Public function Const

FOnPartyStat...

 

OnPartyStateChanged()

Public function

void

 

RefreshPublicJoinability()

Re-evaluates whether this party is joinable by anyone and, if not, establishes the reason why

Public function Virtual

void

 

RemoveLocalMember

(
    const FUniqueNetIdRepl& LocalUserI...,
    const FOnLeavePartyAttemptComplete ...
)

Protected function

void

 

SetIsMissingPlatformSession

(
    bool bInIsMissingPlatformSession
)

Public function

void

 

SetPartyMaxSize

(
    int32 NewSize
)

Protected function Const

bool

 

ShouldCacheForRejoinOnDisconnect()

Public function Const

FString

 

ToDebugString()

Protected function

void

 

TryFinishInitialization()

Protected function

bool

 

TryInviteUser

(
    const USocialUser& UserToInvite
)

Protected function

bool

 

TryKickMember

(
    const UPartyMember& PartyMember
)

Protected function

bool

 

TryPromoteMember

(
    const UPartyMember& PartyMember
)

Protected function

void

 

UpdatePartyConfig

(
    bool bResetAccessKey
)

Apply local party configuration to the OSS party, optionally resetting the access key to the party in the process

Classes

Typedefs

Name

Description

FOnLeavePartyAttemptComplete

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss