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.
43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
package StevenDimDoors.mod_pocketDim.saving;
|
|
|
|
import java.util.List;
|
|
|
|
import StevenDimDoors.mod_pocketDim.Point3D;
|
|
|
|
public class PackedDimData
|
|
{
|
|
// These fields will be public since this is a simple data container
|
|
public final int ID;
|
|
public final boolean IsDungeon;
|
|
public final boolean IsFilled;
|
|
public final int Depth;
|
|
public final int PackDepth;
|
|
public final int ParentID;
|
|
public final int RootID;
|
|
public final Point3D Origin;
|
|
public final int Orientation;
|
|
public final List<Integer> ChildIDs;
|
|
public final List<PackedLinkData> Links;
|
|
public final List<PackedLinkTail> Tails;
|
|
|
|
// FIXME Missing dungeon data, not sure how to include it
|
|
|
|
public PackedDimData(int id, int depth, int packDepth, int parentID, int rootID, int orientation,
|
|
boolean isDungeon, boolean isFilled, Point3D origin, List<Integer> childIDs, List<PackedLinkData> links,
|
|
List<PackedLinkTail> tails)
|
|
{
|
|
ID = id;
|
|
Depth = depth;
|
|
PackDepth = packDepth;
|
|
ParentID = parentID;
|
|
RootID = rootID;
|
|
Orientation = orientation;
|
|
IsDungeon = isDungeon;
|
|
IsFilled = isFilled;
|
|
Origin = origin;
|
|
ChildIDs = childIDs;
|
|
Links = links;
|
|
Tails = tails;
|
|
}
|
|
}
|