结构 FMatchmakerTeam
Review the structure representing a team of players in a matched game.
阅读时间1 分钟最后更新于 7 个月前
Include(包括)
#include <MatchmakerServer/Public/Models/MatchmakerTeam.h>
语法
USTRUCT(BlueprintType)struct FMatchmakerTeam
字段
TeamName
队伍的名称。此队伍名称应与匹配规则中定义的队伍名称一致。
声明
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Unity Gaming Services | Matchmaker | Model")FString TeamName
Blueprint
Name | 类型 |
|---|---|
| Team Name(队伍名称) | 字符串 |
C++
Name | 类型 |
|---|---|
| FString |
TeamId
队伍的 ID。
声明
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Unity Gaming Services | Matchmaker | Model")FString TeamId
Blueprint
Name | 类型 |
|---|---|
| Team Id(团队 ID) | 字符串 |
C++
Name | 类型 |
|---|---|
| FString |
PlayerIds
表示队伍中玩家的玩家 ID 数组。此 ID 必须存在于 Match Properties(匹配属性)的玩家列表中。
声明
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Unity Gaming Services | Matchmaker | Model")TArray<FString> PlayerIds
Blueprint
Name | 类型 |
|---|---|
| Player Ids(玩家 ID) | 字符串数组 |