你怎么在WP7上用XNA获得SignedInGamers的名字?(How do you get the name of SignedInGamers on WP7 with XNA?)

编程入门 行业动态 更新时间:2024-10-28 18:26:27
你怎么在WP7上用XNA获得SignedInGamers的名字?(How do you get the name of SignedInGamers on WP7 with XNA?)

是否有可能像使用XBOX一样在WP7上获取SignedInGamers名称? 我试过测试它:

SignedInGamer gamer = Gamer.SignedInGamers [0]; gamer.DisplayName;

但是只有手机上的玩家对象收到空值。

谢谢塞巴斯蒂安

Is it possible to get the SignedInGamers name on WP7 like you do with the XBOX? I've tried testing it with:

SignedInGamer gamer = Gamer.SignedInGamers[0]; gamer.DisplayName;

But have only received a null value for the gamer object on the phone.

Thanks Sebastian

最满意答案

GamerServices命名空间(此功能所在的位置)仅适用于XBox-Live游戏。 因此,每个创建游戏的人都无法使用它。

您必须拥有授予MS合作伙伴的高级API访问权限,才能创建与Live交互的游戏,以便能够使用此功能。

我假设你不是一个拥有这些额外特权的游戏工作室,这就是为什么你没有为这些对象返回空值。

The GamerServices namespace (where this functionality lives) is only available to XBox-Live games. As such it's not available to everyone creating games.

You must have the elevated API access granted to MS partners allowed to create games which interact with Live to be able to use this functionality.

I'm assuming that you aren't a game studio with these extra priviliges and that is why you're not getting nulls returned for these objects.

更多推荐

本文发布于:2023-08-07 08:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1461617.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:你怎么   名字   XNA   SignedInGamers

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!