Content patch import dialog & server support

This commit is contained in:
Anuken
2025-10-22 06:42:01 -04:00
parent 9f7817f70e
commit 9cc3105518
16 changed files with 373 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
package mindustry.game;
import arc.math.geom.*;
import arc.struct.*;
import arc.util.*;
import mindustry.core.GameState.*;
import mindustry.ctype.*;
@@ -102,6 +103,15 @@ public class EventType{
/** Called when a game begins and the world tiles are initiated. About to updates tile proximity and sets up physics for the world(Before WorldLoadEvent) */
public static class WorldLoadEndEvent{}
/** Called when a save loads custom patches. {@link #patches} can be modified in the event handler. */
public static class ContentPatchLoadEvent{
public final Seq<String> patches;
public ContentPatchLoadEvent(Seq<String> patches){
this.patches = patches;
}
}
public static class SaveLoadEvent{
public final boolean isMap;