//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) }
//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) }