是否有可能像使用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.
更多推荐
发布评论