Data store (static data)

Hi,

I hope this is a simple question: what method do people use to store the static “metagame” data for their games? Not savegame data, but (for example) the list of items that each random drop might come from, or the range of stats a mob may have, etc…

Thanks,
Rich

Probably stored in the enemy’s prefab but you can also do it in a csv file or similar that you read in at run time

When my games start I use a GameObject as a manager (or singleton) to load data like that from a TextAsset.

I use a static class that loads from XML as soon as as you access it in any way. It’s got a bunch of functions like ConstantManager.GetString(“string id”); for retrieving the information.

Sounds like XML is the solution (or Text of some sort anyway). Thanks all.