- Home /
Question by
MiroslavMilanov · Jul 28, 2020 at 04:46 PM ·
serializationsavingdatadata storage
How to structure my project so that I can save/load information?
I'm trying to figure out a proper structure for my project so that it's easy and efficient to save a particular set of information.
I have a two-dimensional array of classes Cell[,].
The Cell class contains basic data types as well as a single List that contains Modifiers.
The Modifier class contains basic data types.
Class structure representation:
I only ever have one instance of the Cell[,] array, so I thought about making it static, but the Serializable documentation says that it cannot serialize static variables.
What is the best way to store such a data structure?
example.png
(51.4 kB)
Comment