Navigation
Unreal Engine C++ API Reference > Plugins > Party
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USocialManager
References
Module | Party |
Header | /Engine/Plugins/Online/OnlineFramework/Source/Party/Public/SocialManager.h |
Include | #include "SocialManager.h" |
Syntax
UCLASS (Within=GameInstance, Config=Game)
class USocialManager :
public UObject ,
public FExec
Remarks
Singleton manager at the top of the social framework
Variables
Type | Name | Description | |
---|---|---|---|
bool | bShutdownPending | Set during shutdown, used to early-out of lingering OnlineSubsystem callbacks that are pending. | |
TMap< FOnlinePartyTypeId, FJoinPartyAttempt > | JoinAttemptsByTypeId | ||
TArray< FUniqueNetIdRef > | MemberIds | ||
USocialManager::FOnPartyMembershipChanged & | OnSocialToolkitDestroyed | ||
FName | OriginalJoinMethod | ||
TSharedRef< const FOnlinePartyId > | PartyId | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< FRejoinableParty > | RejoinableParty | Info on the persistent party we were in when losing connection to the party service and want to rejoin when it returns | |
TSubclassOf< USocialToolkit > | ToolkitClass | The desired type of SocialToolkit to create for each local player |
Constructors
Type | Name | Description | |
---|---|---|---|
Functions
Type | Name | Description | |
---|---|---|---|
void | AddReferencedObjects
(
UObject* InThis, |
||
bool | |||
void | CreateParty
(
const FOnlinePartyTypeId& PartyTypeId, |
||
void | CreatePersistentParty
(
const FOnCreatePartyAttemptComplete& OnCreatePartyComplete |
||
void | FillOutJoinRequestData
(
const FOnlinePartyId& TargetParty, |
Gives child classes a chance to append any additional data to a join request that's about to be sent to another party. | |
ECrossplayPreference | Up to the game to decide whether it wants to allow crossplay (generally based on a user setting of some kind) | ||
USocialDebugTools * | |||
const TArray< ESocialSubsystem > & | |||
FUniqueNetIdRepl | GetFirstLocalUserId
(
ESocialSubsystem SubsystemType |
||
int32 | |||
USocialToolkit * | |||
const FJoinPartyAttempt * | GetJoinAttemptInProgress
(
const FOnlinePartyTypeId& PartyTypeId |
||
FUserPlatform | |||
PartyT * | GetParty
(
const FOnlinePartyId& PartyId |
||
PartyT * | GetParty
(
const FOnlinePartyTypeId& PartyTypeId |
||
TSubclassOf< USocialParty > | GetPartyClassForType
(
const FOnlinePartyTypeId& PartyTypeId |
||
PartyT * | |||
USocialParty * | GetPersistentPartyInternal
(
bool bEvenIfLeaving |
||
const TArray< FSocialInteractionHandle > & | |||
TSubclassOf< USocialDebugTools > | |||
IOnlineSubsystem * | GetSocialOss
(
UWorld* World, |
||
FName | GetSocialOssName
(
ESocialSubsystem SubsystemType |
||
FText | GetSocialOssPlatformName
(
ESocialSubsystem SubsystemType |
||
USocialToolkit & | GetSocialToolkit
(
const ULocalPlayer& LocalPlayer |
||
USocialToolkit * | GetSocialToolkit
(
int32 LocalPlayerNum |
||
USocialToolkit * | GetSocialToolkit
(
FUniqueNetIdRepl LocalUserId |
||
void | HandlePartyDisconnected
(
USocialParty* LeavingParty |
||
void | HandlePlatformSessionInviteAccepted
(
const FUniqueNetIdRef& LocalUserId, |
||
void | HandleQueryJoinabilityComplete
(
const FUniqueNetId& LocalUserId, |
||
void | Initializes the manager - call this right after creating the manager object during GameInstance initialization. | ||
bool | |||
bool | IsLocalUser
(
const FUniqueNetIdRepl& LocalUserId, |
||
bool | IsPartyJoinInProgress
(
const FOnlinePartyTypeId& TypeId |
||
bool | |||
bool | IsSocialSubsystemEnabled
(
ESocialSubsystem SubsystemType |
FExec. | |
void | JoinParty
(
const USocialUser& UserToJoin, |
||
void | NotifyPartyInitialized
(
USocialParty& Party |
||
void | OnJoinPartyAttemptCompleteInternal
(
const FJoinPartyAttempt& JoinAttemptInfo, |
Virtual void OnCreatePartyComplete(const TSharedPtr |
|
FOnPartyMembershipChanged & | |||
void | OnPartyLeftInternal
(
USocialParty& LeftParty, |
||
USocialManager::FOnSocialToolkitCreated TBaseMulticastDelegate_OneParam | |||
USocialManager::FOnSocialToolkitDestroyed TBaseMulticastDelegate_OneParam | Event triggered when a social toolkit is destroyed. | ||
void | OnToolkitCreatedInternal
(
USocialToolkit& NewToolkit |
||
void | |||
void | |||
void | RegisterSecondaryPlayer
(
int32 LocalPlayerNum, |
Makes an attempt for the target local player to join the primary local player's party | |
void | |||
void | RestorePartyStateFromPartySystem
(
const FOnRestorePartyStateFromPartySystemComplete& OnRestoreComplete |
||
PRAGMA_DISABLE_DEPRECATION_WARNINGS bool | ShouldTryRejoiningPersistentParty
(
const FRejoinableParty& InRejoinableParty |
||
void | |||
FJoinPartyResult | ValidateJoinAttempt
(
const FOnlinePartyTypeId& PartyTypeId |
Validate that we are clear to try joining a party of the given type. If not, gives the reason why. | |
FJoinPartyResult | ValidateJoinTarget
(
const USocialUser& UserToJoin, |
Validates that the target user has valid join info for us to use and that we can join any party of the given type |
Classes
Type | Name | Description | |
---|---|---|---|
FJoinPartyAttempt | |||
FOnPartyMembershipChanged | |||
FOnSocialToolkitCreated | |||
FOnSocialToolkitDestroyed |
Typedefs
Name | Description |
---|---|
FOnCreatePartyAttemptComplete | |
FOnJoinPartyAttemptComplete | |
FOnRestorePartyStateFromPartySystemComplete | Attempt to restore our party state from the party system |
Constants
Name | Description |
---|---|
DefaultSubsystems | |
RegisteredInteractions |