private int calcSize(String name, String desc, int chunksX, int chunksY, Output output) {
		int out = 0;
		
		//Header
		out += 2;
		out += name.length();
		out += 2;
		out += 4;
		out += 4;
		out += 1;
		out += desc.length();
		out += 2;
		
		//Chunks and tiles
		out += (chunksX * chunksY) * 5;
		for (Tile tile : output.getTilesArray().values()) {
			out += 5;
			out += 6;
		}
		
		return out;
	}