oct0202
Serialization/Deserialization
I'm going to do more examples with serialize/deserialize in order to get more familiar with it, thanks. So the architecture is like that : Context.cs ( the context of the game ) initializes the current player and the layout of the chessboard
the ChessLayout.cs creates the pieces
the Coordinate.cs holds a data structure like this: private static Dictionary<int, Dictionary<int, Coordinate>> _instances;
the Initialize method from Board.cs contains initialization of ChessLayout and Context.
But i literally don't know how to hold all the jsons for the context,layout,pieces etc, so that I can save/load the game.
3 replies