I have a mobile project I am working on that involves a lot of data and I am stuck pretty much at the start because I want to iron out the way the different pieces interact before trying to force a square peg down a circle hole.
The type of data I am working with is as follows:
- Player
Player owns characters, a rpg party essentially. These characters are based on templates that hold name, base stats, and various types of data. The player will also have data related to what they have done, ie quests completed etc.
- Character
Each character will be pulled from their template which says when they unlock certain things and how their stats will progress. Essentially storing a list of characters as they are by default.
Pretty standard information for a game. I’ve mostly only made quick games that were one scene and more arcade style so I’m in new territory for the most part.
Ways I’ve considered storing this data:
- Storing them in an empty game object (Database) in a list for each category. Each character, monster, etc would be a gameobject setup as they would be at default. Once the player owns something it would become an object childed to them, a copy that is. This feels like a crude way of storing data.
- Storing the data in a script for each. (Ex. Monster1.cs, Monster2.cs) and mapping it onto a template “character” This seems like the best way? Feels like it would be a lot of script clutter though.
- Storing data in a type of text database and pulling it from templates and writing to the playerprefs.
Am I on the right track here?