ドキュメント

サポート

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.
読み終わるまでの所要時間 2 分最終更新 14日前

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
&
属性の追加先となるバックフィルチケットオプションです。
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
&
属性の追加先となるバックフィルチケットオプションです。
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
&
属性が削除されるバックフィルチケットオプションです。
Key
FString削除する属性のキーです。

戻り値

説明

bool
Options に対象の属性があり、かつ削除された場合には
true
、属性がなかった場合には
false
が返されます。

DeserializeMatchmakingResults(FString)

マッチメイキングの結果を表す JSON を含む FString を、ブループリントからアクセス可能な構造体に変換します。Multiplay 割り当てペイロードを使用する場合にのみ使用してください。

宣言

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

パラメーター

名前

説明

JsonValueAsString
FStringデシリアライズする JSON 文字列。

戻り値

説明

FMatchmakingResultsデシリアライズされた MatchmakingResults。