Skip to main content
GameDev.net gamedev.net
🔒 Locked

Reading array of Rectangles from XML

Started by GameDev.net Apr 16, 2013 at 4:41 PM 2 replies 1.7k views
Original Post
GameDev.net
GameDev.net

I'm bit confused why do I have to format array of Rectangles like this:


        <SourceRect>
          0 0 48 36
          48 0 48 36
        </SourceRect>

...instead of using or tags for each component in array?

I've been using the default method described here to load XML content in to the XNA project:

http://msdn.microsoft.com/en-us/library/ff604979.aspx

Dave Hunt
Dave Hunt
A private constructor should work, since IntermediateSerializer user generated IL, rather than C# to do its work.

Yes, your first two statements will reference the same object and the second two will reference different objects.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.