Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    201
  • comments
    88
  • views
    100780

oh well

Sign in to follow this  
Metron

97 views

I must keep zen... I must keep zen...

Beside the fact that I currently consider my job as being... well... awful... to select a mild word, I'm also struggling with the TBS engine.

I thought that I had found just the right way to do save games and the entity<->category relationship when I stumbled onto the underground templates that are used to generate the underground of a map. I don't want to store the entity parameters completely when making a savegame because that would prevent me from changing the template and having that changement affect the map accordingly.

So... I had to bite the sour apple and store a pointer to the template that is used to create an entity within the entity class and additionally give the template and the entity a function to access the name of the category in which they are stored.

On the other side, this allowed me to have inheritance between the templates. Means I can derive a template from another one.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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
  • 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!