mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-23 16:34:07 +00:00
hghhgg
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
|||||||
|
|
||||||
// Get the current session settings
|
// Get the current session settings
|
||||||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedSessions|SessionInfo", meta = (ExpandEnumAsExecs = "Result"))
|
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedSessions|SessionInfo", meta = (ExpandEnumAsExecs = "Result"))
|
||||||
static void GetSessionSettings(int32 &NumConnections, bool &bIsLAN, bool &bIsDedicated, bool &bIsAnticheatEnabled, int32 &BuildUniqueID, TArray<FSessionPropertyKeyPair> &ExtraSettings, TEnumAsByte<EBlueprintResultSwitch::Type> &Result);
|
static void GetSessionSettings(int32 &NumConnections, int32 &NumPrivateConnections, bool &bIsLAN, bool &bIsDedicated, bool &bIsAnticheatEnabled, int32 &BuildUniqueID, TArray<FSessionPropertyKeyPair> &ExtraSettings, TEnumAsByte<EBlueprintResultSwitch::Type> &Result);
|
||||||
|
|
||||||
// Check if someone is in the current session
|
// Check if someone is in the current session
|
||||||
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedSessions|SessionInfo")
|
UFUNCTION(BlueprintCallable, Category = "Online|AdvancedSessions|SessionInfo")
|
||||||
|
@@ -49,6 +49,9 @@ void UAdvancedExternalUILibrary::ShowWebURLUI(FString URLToShow, TEnumAsByte<EBl
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
URLToShow = URLToShow.Replace(TEXT("http://"), TEXT(""));
|
||||||
|
URLToShow = URLToShow.Replace(TEXT("https://"), TEXT(""));
|
||||||
|
|
||||||
ExternalUIInterface->ShowWebURL(URLToShow);
|
ExternalUIInterface->ShowWebURL(URLToShow);
|
||||||
Result = EBlueprintResultSwitch::Type::OnSuccess;
|
Result = EBlueprintResultSwitch::Type::OnSuccess;
|
||||||
}
|
}
|
||||||
|
@@ -68,7 +68,7 @@ void UAdvancedSessionsLibrary::GetSessionState(TEnumAsByte<EBPOnlineSessionState
|
|||||||
SessionState = ((EBPOnlineSessionState::Type)SessionInterface->GetSessionState(GameSessionName));
|
SessionState = ((EBPOnlineSessionState::Type)SessionInterface->GetSessionState(GameSessionName));
|
||||||
}
|
}
|
||||||
|
|
||||||
void UAdvancedSessionsLibrary::GetSessionSettings(int32 &NumConnections, bool &bIsLAN, bool &bIsDedicated, bool &bIsAnticheatEnabled, int32 &BuildUniqueID, TArray<FSessionPropertyKeyPair> &ExtraSettings, TEnumAsByte<EBlueprintResultSwitch::Type> &Result)
|
void UAdvancedSessionsLibrary::GetSessionSettings(int32 &NumConnections, int32 &NumPrivateConnections, bool &bIsLAN, bool &bIsDedicated, bool &bIsAnticheatEnabled, int32 &BuildUniqueID, TArray<FSessionPropertyKeyPair> &ExtraSettings, TEnumAsByte<EBlueprintResultSwitch::Type> &Result)
|
||||||
{
|
{
|
||||||
IOnlineSessionPtr SessionInterface = Online::GetSessionInterface();
|
IOnlineSessionPtr SessionInterface = Online::GetSessionInterface();
|
||||||
|
|
||||||
@@ -86,8 +86,10 @@ void UAdvancedSessionsLibrary::GetSessionSettings(int32 &NumConnections, bool &b
|
|||||||
Result = EBlueprintResultSwitch::Type::OnFailure;
|
Result = EBlueprintResultSwitch::Type::OnFailure;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildUniqueID = settings->BuildUniqueId;
|
BuildUniqueID = settings->BuildUniqueId;
|
||||||
NumConnections = settings->NumPublicConnections;
|
NumConnections = settings->NumPublicConnections;
|
||||||
|
NumPrivateConnections = settings->NumPrivateConnections;
|
||||||
bIsLAN = settings->bIsLANMatch;
|
bIsLAN = settings->bIsLANMatch;
|
||||||
bIsDedicated = settings->bIsDedicated;
|
bIsDedicated = settings->bIsDedicated;
|
||||||
bIsAnticheatEnabled = settings->bAntiCheatProtected;
|
bIsAnticheatEnabled = settings->bAntiCheatProtected;
|
||||||
|
Reference in New Issue
Block a user