类 UMatchmakerClientBlueprintUtil
Review the utility functions available for working with the Matchmaker Client Blueprint API.
Include(包括)
#include <MatchmakerClient/Public/Utils/MatchmakerClientBlueprintUtil.h>
语法
UCLASS()class UMatchmakerClientBlueprintUtil : public UBlueprintFunctionLibrary
继承自 UBlueprintFunctionLibrary
方法
PlayerCustomDataAddStringData(FMatchmakerPlayer&, FString, FString)
将自定义数据字符串添加到玩家的 CustomData 字段。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool PlayerCustomDataAddStringData(UPARAM(ref) FMatchmakerPlayer& Player, FString Key, FString Value)
参数
返回
类型 | 描述 |
|---|
| 如果添加自定义数据成功,返回 ,否则返回 。 |
PlayerCustomDataAddNumberData(FMatchmakerPlayer&, FString, float)
将自定义数据数字添加到玩家的 CustomData 字段。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool PlayerCustomDataAddNumberData(UPARAM(ref) FMatchmakerPlayer& Player, FString Key, float Value)
参数
返回
类型 | 描述 |
|---|
| 如果添加自定义数据成功,返回 ,否则返回 。 |
PlayerCustomDataRemoveData(FMatchmakerPlayer&, FString)
从 MatchmakerPlayer 的 CustomData 中移除自定义数据字段。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool PlayerCustomDataRemoveData(UPARAM(ref) FMatchmakerPlayer& Player, FString Key)
参数
返回
CreateTicketOptionsAddStringAttribute(FCreateTicketOptions&, FString, FString)
向 CreateTicketOptions 添加字符串属性。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateTicketOptionsAddStringAttribute(UPARAM(ref) FCreateTicketOptions& Options, FString Key, FString Value)
参数
返回
CreateTicketOptionsAddNumberAttribute(FCreateTicketOptions&, FString, float)
向 添加数字属性。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateTicketOptionsAddNumberAttribute(UPARAM(ref) FCreateTicketOptions& Options, FString Key, float Value)
参数
返回
类型 | 描述 |
|---|
| 如果添加自定义数据成功,返回 ,否则返回 。 |
CreateTicketOptionsRemoveAtrribute(FCreateTicketOptions&, FString)
从 CreateTicketOptions 移除属性。
声明
UFUNCTION(BlueprintCallable, Category = "Unity Gaming Services | Matchmaker Util")static bool CreateTicketOptionsRemoveAtrribute(UPARAM(ref) FCreateTicketOptions& Options, FString Key)
参数
返回
类型 | 描述 |
|---|
| 如果 Options 包含该属性并且该属性已被移除,则返回 ;如果不包含该属性,则返回 。 |