<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To Test If A Player Can Purchase Your Game</title>
	<atom:link href="http://blog.nickgravelyn.com/2008/12/how-to-test-if-a-player-can-purchase-your-game/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nickgravelyn.com/2008/12/how-to-test-if-a-player-can-purchase-your-game/</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 01:34:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sean Colombo</title>
		<link>http://blog.nickgravelyn.com/2008/12/how-to-test-if-a-player-can-purchase-your-game/comment-page-1/#comment-449</link>
		<dc:creator>Sean Colombo</dc:creator>
		<pubDate>Sun, 09 May 2010 20:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=547#comment-449</guid>
		<description>Small note: you&#039;ll need
&lt;code&gt;using Microsoft.Xna.Framework.GamerServices;&lt;/code&gt;
at the top of your file to use this code.

Helpful snippet. Thanks Nick!</description>
		<content:encoded><![CDATA[<p>Small note: you&#8217;ll need<br />
<code>using Microsoft.Xna.Framework.GamerServices;</code><br />
at the top of your file to use this code.</p>
<p>Helpful snippet. Thanks Nick!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rainault</title>
		<link>http://blog.nickgravelyn.com/2008/12/how-to-test-if-a-player-can-purchase-your-game/comment-page-1/#comment-94</link>
		<dc:creator>Rainault</dc:creator>
		<pubDate>Wed, 03 Dec 2008 17:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=547#comment-94</guid>
		<description>I suspect that&#039;s what they&#039;re doing under the hood, too. I mean, there are only up to four local players, so it&#039;s pretty simple to iterate through them to find the appropriate PlayerIndex. And I do understand the motivation behind making your code more verbose. Explicit == good when explaining stuff.</description>
		<content:encoded><![CDATA[<p>I suspect that&#8217;s what they&#8217;re doing under the hood, too. I mean, there are only up to four local players, so it&#8217;s pretty simple to iterate through them to find the appropriate PlayerIndex. And I do understand the motivation behind making your code more verbose. Explicit == good when explaining stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.nickgravelyn.com/2008/12/how-to-test-if-a-player-can-purchase-your-game/comment-page-1/#comment-93</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 03 Dec 2008 07:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=547#comment-93</guid>
		<description>Ah yes you can. I always forget about that. I keep thinking that if controller 3 signs in they&#039;ll be index 0, which they might be. But you are right; they have an overload that takes the PlayerIndex instead. Though, in essence, that&#039;s likely what they&#039;re doing under the hood. That or they really are sorting the gamers by index and then are just wrapping the cast to int in the PlayerIndex indexer.

I&#039;ll just adjust the above code. :-)

As for your other line, I&#039;d personally use that, but I generally use more verbose code when doing samples. I find most people prefer it.</description>
		<content:encoded><![CDATA[<p>Ah yes you can. I always forget about that. I keep thinking that if controller 3 signs in they&#8217;ll be index 0, which they might be. But you are right; they have an overload that takes the PlayerIndex instead. Though, in essence, that&#8217;s likely what they&#8217;re doing under the hood. That or they really are sorting the gamers by index and then are just wrapping the cast to int in the PlayerIndex indexer.</p>
<p>I&#8217;ll just adjust the above code. <img src='http://blog.nickgravelyn.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>As for your other line, I&#8217;d personally use that, but I generally use more verbose code when doing samples. I find most people prefer it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rainault</title>
		<link>http://blog.nickgravelyn.com/2008/12/how-to-test-if-a-player-can-purchase-your-game/comment-page-1/#comment-92</link>
		<dc:creator>Rainault</dc:creator>
		<pubDate>Wed, 03 Dec 2008 07:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nickgravelyn.com/?p=547#comment-92</guid>
		<description>Can&#039;t you just index into Gamer.SignedInGamers with a PlayerIndex without having to iterate through them?

SignedInGamer gamer = Gamer.SignedInGamers[player];
return gamer != null &amp;&amp; gamer.IsSignedInToLive &amp;&amp; gamer.Privileges.AllowPurchaseContent;</description>
		<content:encoded><![CDATA[<p>Can&#8217;t you just index into Gamer.SignedInGamers with a PlayerIndex without having to iterate through them?</p>
<p>SignedInGamer gamer = Gamer.SignedInGamers[player];<br />
return gamer != null &amp;&amp; gamer.IsSignedInToLive &amp;&amp; gamer.Privileges.AllowPurchaseContent;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
