代码之家  ›  专栏  ›  技术社区  ›  Joseph Tura

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

  •  2
  • Joseph Tura  · 技术社区  · 15 年前

    非常感谢您的帮助。

    1 回复  |  直到 15 年前
        1
  •  0
  •   Joseph Tura    15 年前

    仔细想想:在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,我应该可以用它来做我想做的事情。

    推荐文章