Example #1
0
//Saves the generator's settings to the world's storage
func (sf *SuperFlat) Save(w *world.World) {
	sav := savableGenerator{sf.GenerationCode()}
	w.Write(saveKey, &sav)
}
Example #2
0
//Saves the generator's settings to the world's storage
func (sf *SuperFlat) Load(w *world.World) {
	var sav savableGenerator
	w.Read(saveKey, &sav)
	sf.parseString(sav.GenerationCode)
}