Package mindustry.io
Class SaveIO
java.lang.Object
mindustry.io.SaveIO
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte[]
Save format header.static final Seq<SaveVersion>
static final IntMap<SaveVersion>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Fi
backupFileFor
(Fi file) static Fi
fileFor
(int slot) static DataInputStream
getBackupStream
(Fi file) static SaveMeta
static SaveMeta
getMeta
(DataInputStream stream) static SaveVersion
static SaveVersion
getSaveWriter
(int version) static DataInputStream
static SaveVersion
static boolean
isSaveValid
(Fi file) static boolean
isSaveValid
(DataInputStream stream) static void
static void
load
(Fi file, WorldContext context) static void
load
(InputStream is, WorldContext context) Loads from a deflated (!) input stream.static void
static void
readHeader
(DataInput input) static void
static void
static void
static void
write
(OutputStream os, StringMap tags)
-
Field Details
-
header
public static final byte[] headerSave format header. -
versions
-
versionArray
-
-
Constructor Details
-
SaveIO
public SaveIO()
-
-
Method Details
-
getSaveWriter
-
getSaveWriter
-
save
-
getStream
-
getBackupStream
-
isSaveValid
-
isSaveValid
-
getMeta
-
getMeta
-
fileFor
-
backupFileFor
-
write
-
write
-
write
-
load
- Throws:
SaveIO.SaveException
-
load
- Throws:
SaveIO.SaveException
-
load
- Throws:
SaveIO.SaveException
-
load
Loads from a deflated (!) input stream.- Throws:
SaveIO.SaveException
-
getVersion
-
readHeader
- Throws:
IOException
-