protected void write(BinBuffer binb) {
		binb.writeJavaString(worldGen.tag);
		
		data.setPos(0);
		binb.writeUInt(width);
		binb.writeUInt(height);
		binb.writeBinBuffer(data);
		
		binb.writeUShort(idMapTiles.size());
		for (Entry<Integer,Tile> entry : idMapTiles.entrySet()) {
			binb.writeUShort(entry.getKey());
			binb.writeJavaString(entry.getValue().tag);
		}
		
		binb.writeUShort(idMapWalls.size());
		for (Entry<Integer,Wall> entry : idMapWalls.entrySet()) {
			binb.writeUShort(entry.getKey());
			binb.writeJavaString(entry.getValue().tag);
		}
	}