Jump to content
  • Advertisement
Sign in to follow this  

Data centred architecture design question

This topic is 4712 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, I'm using the date-centred architecture for my game, and I'm trying to decide on how the data should be layed out, I have 3 ideas: 1. Some kind of branching tree that uses hashmaps with string names to get at the data, eg:

Pros: easily edited data structure, data can be initialised easily in a xml file Cons: may be slow because of excessive use of hashmaps(eg string search for data's pointer) 2. Class based method, eg:
class Data {
   Window window;
   vector<Entity> entities;
}; //etc etc

Pros: Very fast Cons: Requires alot of classes, eg get/sets funcs aswell 3. Relational Database Doesn't have to be a real database, just the data layed out like one. pro/con: not sure. So how is data generally layed out when using this architecture? Thanks

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!