기술 자료

지원

Matchmaker for the Unreal Engine

Matchmaker overview

Matchmaker for the Unreal Engine

클래스 UMatchmakerServerBlueprintUtil

Review the utility functions available for working with the Matchmaker Server Blueprint API.
읽는 시간 1분최근 업데이트: 10일 전

Include
#include <MatchmakerServer/Public/Utils/MatchmakerServerBlueprintUtil.h>
구문
UCLASS()class UMatchmakerServerBlueprintUtil : public UBlueprintFunctionLibrary
UBlueprintFunctionLibrary에서 상속됩니다.

메서드

CreateBackfillTicketOptionsAddStringAttribute(FCreateBackfillTicketOptions&, FString, FString)

CreateBackfillTicketOptions
에 문자열 속성을 추가합니다.

선언

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsAddStringAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key, FString Value)

파라미터

이름

유형

설명

Options
FCreateBackfillTicketOptions
&
속성을 추가할 Backfill 티켓 옵션
Key
FString속성의 키
Value
FString속성에 추가할 문자열 값

다음을 반환

유형

설명

bool
속성이 추가되면
true
를 반환하고, 그렇지 않으면
false
를 반환합니다.

CreateBackfillTicketOptionsAddNumberAttribute(FCreateBackfillTicketOptions&, FString, float)

CreateBackfillTicketOptions
에 숫자 속성을 추가합니다.

선언

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsAddNumberAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key, float Value)

파라미터

이름

유형

설명

Options
FCreateBackfillTicketOptions
&
속성을 추가할 Backfill 티켓 옵션
Key
FString속성의 키
Value
float
속성에 추가할 숫자 값

다음을 반환

유형

설명

bool
속성이 추가되면
true
를 반환하고, 그렇지 않으면
false
를 반환합니다.

CreateBackfillTicketOptionsRemoveAttribute(FCreateBackfillTicketOptions&, FString)

CreateBackfillTicketOptions
에서 속성을 제거합니다.

선언

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateBackfillTicketOptionsRemoveAttribute(UPARAM(ref) FCreateBackfillTicketOptions& Options, FString Key)

파라미터

이름

유형

설명

Options
FCreateBackfillTicketOptions
&
속성을 제거할 Backfill 티켓 옵션
Key
FString제거할 속성의 키

다음을 반환

유형

설명

bool
옵션에 속성이 포함되어 제거된 경우
true
를 반환하고, 속성이 포함되지 않은 경우
false
를 반환합니다.

DeserializeMatchmakingResults(FString)

Matchmaking 결과에 대한 JSON을 포함하는 FString을 블루프린트에서 액세스 가능한 구조체로 전환합니다. Multiplay 페이로드 할당에서만 사용됩니다.

선언

UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static FMatchmakingResults DeserializeMatchmakingResults(FString JsonValueAsString)

파라미터

이름

유형

설명

JsonValueAsString
FString역직렬화할 JSON 문자열

다음을 반환

유형

설명

FMatchmakingResults역직렬화된 MatchmakingResults