Hello everybody.
I made a voxel world generator.
How can i save the maps and later reload them during gameplay ?
sorry for my bad English.
You need to use binary serialization. You will have to make some sort of naming scheme to save each chunk and then deserialize them once needed. Use a class which contains an array with the data of the chunk and then serialize that class. This is a good starting point (starts at 28:40). Or, you can take a look at Microsoft’s example.