Integrated the base code for our new save format. It still needs more work but at least some substance is there. Ignore the file not found messages that come up when trying to save the world's data - since we're not actually writing files, an exception occurs when we some later code tries to move non-existent save files. Also moved the FileFilter functionality out of DungeonHelper and into its own class, FileFilters, since it's finally needed more broadly.
29 lines
683 B
Java
29 lines
683 B
Java
package StevenDimDoors.mod_pocketDim.saving;
|
|
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
|
|
import StevenDimDoors.mod_pocketDim.util.BaseConfigurationProcessor;
|
|
import StevenDimDoors.mod_pocketDim.util.ConfigurationProcessingException;
|
|
|
|
public class DimDataProcessor extends BaseConfigurationProcessor<PackedDimData>
|
|
{
|
|
|
|
@Override
|
|
public PackedDimData readFromStream(InputStream inputStream)
|
|
throws ConfigurationProcessingException
|
|
{
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void writeToStream(OutputStream outputStream, PackedDimData data)
|
|
throws ConfigurationProcessingException
|
|
{
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
}
|