(SaveFileData saveFileData)
| 97 | } |
| 98 | |
| 99 | @Override |
| 100 | public void load(SaveFileData saveFileData) { |
| 101 | |
| 102 | if (biomeImage != null) |
| 103 | biomeImage.dispose(); |
| 104 | |
| 105 | loadWorldData(); |
| 106 | |
| 107 | biomeImage = saveFileData.readPixmap("biomeImage"); |
| 108 | biomeMap = (long[][]) saveFileData.readObject("biomeMap"); |
| 109 | terrainMap = (int[][]) saveFileData.readObject("terrainMap"); |
| 110 | |
| 111 | |
| 112 | width = saveFileData.readInt("width"); |
| 113 | height = saveFileData.readInt("height"); |
| 114 | mapObjectIds = new SpritesDataMap(getChunkSize(), this.data.tileSize, this.data.width / getChunkSize()); |
| 115 | mapObjectIds.load(saveFileData.readSubData("mapObjectIds")); |
| 116 | mapPoiIds = new PointOfInterestMap(getChunkSize(), this.data.tileSize, this.data.width / getChunkSize(), this.data.height / getChunkSize()); |
| 117 | mapPoiIds.load(saveFileData.readSubData("mapPoiIds")); |
| 118 | seed = saveFileData.readLong("seed"); |
| 119 | } |
| 120 | |
| 121 | @Override |
| 122 | public SaveFileData save() { |
nothing calls this directly
no test coverage detected