Jump to content
  • Advertisement
Sign in to follow this  
Lumalalelo

XNA access problem

This topic is 2855 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
Advertisement
Why did you separate them into different projects? It might be easier to bring them all into the same project and separate them based on file and namespace; then you can "using YOURNAMESPACEHERE" wherever you need the classes and methods you create.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!