Aventro Posted February 27, 2013 Share Posted February 27, 2013 I am not very experienced with database storage as I would like to be. For example, let's say users have different buildings, i.e. farms, barracks etc. Each building has a level. Now, let's say a user would like to upgrade an building and based on an condition is allowed to upgrade x buildings at a time (upgrading a building would obviously take certain time, like one hour, our two based on what level the building currently is on). What would I need to store, how would the table be structured? It should also be noted that it may not only be buildings that may be upgrades, let's assume even some other resource/entity could be upgraded such as troops. Also, how would I store the conditions required (let's say to upgrade Building A to level 2, I need Building B in level 1). ( I am well aware this could be hard-coded, If, let's say I had a class for each building, but is that essential, or is data storing in a database, or just to make it simpler, we don't use classes for each building (which may be the way to go...) Not much information provided, but let's start off from here, you can make your own assumptions if needed, we're not talking about a current game with a current architecture, but just generally - as I'd like to plan out my game architecture before actually writing it. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.