iOs 中的游戏中心 - 为您的比赛指定配置

发布于 2024-09-24 15:17:40 字数 185 浏览 1 评论 0原文

浏览 Game Center / GameKit 文档,我找不到任何有关为比赛指定游戏配置变量的信息。

假设您想要指定一场比赛必须具备的某些特征才能获得匹配资格(例如,您想要从游戏中排除某些武器、想要指定比赛的长度等)。这能做到吗(如果不能:为什么?!?)?我似乎唯一能找到的是匹配某些玩家类别的可能性。

非常感谢任何帮助。

Going through the Game Center / GameKit docs, I could not find any information on specifying game configuration variables for a match.

Let's say that you want to specify certain features a match should have to qualify for match making (e.g. you want to exclude certain weapons from the game, want to specify a length for the match etc.). Can that be done at all (if not: why?!?)? The only thing I seem to be able to find is the possibility to match certain player classes.

Any help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人心善变 2024-10-01 15:17:40

再想一想:GKMatchRequest 中的playerGoups 可能是正确的选择。

   "If your application sets the playerGroup property, then only players whose 
requests share the same playerGroup value are automatched by Game Center. 
You can use any values you want for player groups. For example, 
you could define different playerGroup values to implement any of the 
following filters"

由于playerGroups是一个NSInteger,我应该能够使用它来做我想做的事情。

On second thought: playerGoups in GKMatchRequest might be the way to go.

   "If your application sets the playerGroup property, then only players whose 
requests share the same playerGroup value are automatched by Game Center. 
You can use any values you want for player groups. For example, 
you could define different playerGroup values to implement any of the 
following filters"

As playerGroups is an NSInteger, I should be able to use that to do what I want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文