mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-12-09 23:53:03 +00:00
Compare commits
8 Commits
5.5-Locked
...
5.6-Locked
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf1e457b81 | ||
|
|
5fc56c5ac9 | ||
|
|
682ac3f676 | ||
|
|
b7b684fae9 | ||
|
|
9eedc08f9a | ||
|
|
07634f173d | ||
|
|
df749735dd | ||
|
|
9a62ea3b61 |
@@ -5,6 +5,9 @@ public class AdvancedSessions : ModuleRules
|
|||||||
{
|
{
|
||||||
public AdvancedSessions(ReadOnlyTargetRules Target) : base(Target)
|
public AdvancedSessions(ReadOnlyTargetRules Target) : base(Target)
|
||||||
{
|
{
|
||||||
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
||||||
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
|
|
||||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
//bEnforceIWYU = true;
|
//bEnforceIWYU = true;
|
||||||
|
|
||||||
|
|||||||
@@ -44,10 +44,15 @@ public:
|
|||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedVoiceInterface)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedVoiceInterface)
|
||||||
bool bEnableTalkingStatusDelegate;
|
bool bEnableTalkingStatusDelegate;
|
||||||
|
|
||||||
|
// If true we will auto join a session we have accepted in the overlay.
|
||||||
|
// This can get in the way of Beacon Sessions, you may want to disable it.
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedFriendsInterface)
|
||||||
|
bool bAutoJoinSessionOnAcceptedUserInviteReceived = false;
|
||||||
|
|
||||||
// If true we will auto travel to a game session when an invite is received.
|
// If true we will auto travel to a game session when an invite is received.
|
||||||
// This can get in the way of Beacon Sessions, you may want to disable it.
|
// This can get in the way of Beacon Sessions, you may want to disable it.
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedFriendsInterface)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedFriendsInterface)
|
||||||
bool bAutoTravelOnAcceptedUserInviteReceived = true;
|
bool bAutoTravelOnAcceptedUserInviteReceived = false;
|
||||||
|
|
||||||
//virtual void PostLoad() override;
|
//virtual void PostLoad() override;
|
||||||
virtual void Shutdown() override;
|
virtual void Shutdown() override;
|
||||||
|
|||||||
@@ -22,9 +22,15 @@ UAdvancedFriendsGameInstance::UAdvancedFriendsGameInstance(const FObjectInitiali
|
|||||||
|
|
||||||
void UAdvancedFriendsGameInstance::OnSessionUserInviteAccepted(const bool bWasSuccessful, const int32 ControllerId, FUniqueNetIdPtr UserId, const FOnlineSessionSearchResult& InviteResult)
|
void UAdvancedFriendsGameInstance::OnSessionUserInviteAccepted(const bool bWasSuccessful, const int32 ControllerId, FUniqueNetIdPtr UserId, const FOnlineSessionSearchResult& InviteResult)
|
||||||
{
|
{
|
||||||
|
if (!bAutoJoinSessionOnAcceptedUserInviteReceived)
|
||||||
|
return;
|
||||||
|
|
||||||
IOnlineSessionPtr SessionInterface = Online::GetSessionInterface(GetWorld());
|
IOnlineSessionPtr SessionInterface = Online::GetSessionInterface(GetWorld());
|
||||||
if (SessionInterface.IsValid())
|
if (SessionInterface.IsValid())
|
||||||
{
|
{
|
||||||
|
// Eventually call this?, would need another call back to run through
|
||||||
|
//SessionInterface->DestroySession(NAME_GameSession);
|
||||||
|
|
||||||
SessionInterface->ClearOnJoinSessionCompleteDelegate_Handle(OnJoinSessionCompleteDelegateHandle);
|
SessionInterface->ClearOnJoinSessionCompleteDelegate_Handle(OnJoinSessionCompleteDelegateHandle);
|
||||||
OnJoinSessionCompleteDelegateHandle = SessionInterface->AddOnJoinSessionCompleteDelegate_Handle(
|
OnJoinSessionCompleteDelegateHandle = SessionInterface->AddOnJoinSessionCompleteDelegate_Handle(
|
||||||
FOnJoinSessionCompleteDelegate::CreateUObject(this, &UAdvancedFriendsGameInstance::OnJoinSessionComplete));
|
FOnJoinSessionCompleteDelegate::CreateUObject(this, &UAdvancedFriendsGameInstance::OnJoinSessionComplete));
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ public class AdvancedSteamSessions : ModuleRules
|
|||||||
{
|
{
|
||||||
public AdvancedSteamSessions(ReadOnlyTargetRules Target) : base(Target)
|
public AdvancedSteamSessions(ReadOnlyTargetRules Target) : base(Target)
|
||||||
{
|
{
|
||||||
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
||||||
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
|
|
||||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
//bEnforceIWYU = true;
|
//bEnforceIWYU = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user