create store database class for RTS games
my question is about make a true and best class to store data. (for example like clash of clans or royale or RTS games). We have many ways. Suppose we have several cards(units) that have special properties. they have changeable(like current_level,coin_upgradeCost,num_upgradeCard,..) and constant attributes like (id,name,open_levelNum,type,...). we can create one monobehaviour class and fill constant information into the inspector for each units. public class UnitInfo{ int id; string name; int open_levelNum; int type; } public class Database:Monobehaviour{ public UnitInfo[] unitsInfo; // initialize from inspector } So we can use these unitsInfo(Constant information for units) using index for example unitsInfo[0].name. now We need to have a serialized class to store changable fields. [System.Serializable] public class StoreUnit{ public int id; public int current_level; public int coin_upgradeCost; public int num_upgradeCard; } [System.Serializable] public class StoreUnits{ // save this class into a file(playerprefs) List StoreUnits_list; } Is it true and standard method? that we split constant and storing (changeable) information ? or another method to store and get information in card strategy game like Royale?
Please format your question. That is basically unreadable. Put any code snippets in code tags.