Package mindustry.mod
Class DataPatcher
java.lang.Object
mindustry.mod.DataPatcher
The current implementation is awful. Consider it a proof of concept.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(arc.struct.Seq<PatchAsset> patches, arc.struct.Seq<ContentAsset> content) Applies the specified patches.voidapply(arc.struct.Seq<PatchAsset> patches, arc.struct.Seq<ContentAsset> content, boolean reloadContentWorld) Applies the specified patches.static voidarc.struct.Seq<Content>booleanvoidunapply()voidunapply(boolean reloadContentWorld)
-
Field Details
-
dpMod
-
maxImageSize
public static final int maxImageSize- See Also:
-
patchFormatVersion
public static final int patchFormatVersion- See Also:
-
-
Constructor Details
-
DataPatcher
public DataPatcher()
-
-
Method Details
-
isPatched
-
apply
Applies the specified patches. If patches were already applied, the previous ones are un-applied - they do not stack! -
apply
public void apply(arc.struct.Seq<PatchAsset> patches, arc.struct.Seq<ContentAsset> content, boolean reloadContentWorld) Applies the specified patches. If patches were already applied, the previous ones are un-applied - they do not stack! -
unapply
public void unapply() -
unapply
public void unapply(boolean reloadContentWorld) -
getAddedContent
-
fixContentArrays
public static void fixContentArrays()
-