Sign in to follow this  

XNA access problem

This topic is 2635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi ! :)

well, my program is structured in 3 parts. ...

- The Game-Project (with all the good things like the TileEngine, the screens etc.)
- The Processors-Project (for inizializing data from xml files)
- The Data-Project (Characters, Map, ...)

the problem i am facing is that i need to access the Viewport-Object created in an Game-Loop class (Game-Project) from the Data-project.

But apparently i only can import stuff from the Data-Project...so i thought i could just create a static class in the Data-Project that holds the Viewport Property so i can inizialize it from the Game-Project but that also doesn't work.


Is there anything i can do besides putting all my Data that needs the Viewport information into the Game-Project ? :(


Share this post


Link to post
Share on other sites
thank you for your reply ! :)

i oriented on the xna rpg starter kit.
for every data class there exists an corresponding processer class that writes the data down.

i just tried to get rid of those two additional projectmaps and put it down into my Game-project but now i am getting problems with the dezerialization, apparantly he can't find the classes although i didn't change the namespaces.

well i really got stuck there..the access thing is a really big deal :(

[Edited by - Lumalalelo on September 28, 2010 4:52:42 PM]

Share this post


Link to post
Share on other sites

This topic is 2635 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this