Allow spawnpoint edits in-game (closes Anuken/Mindustry-Suggestions/issues/5754)

This commit is contained in:
Anuken
2025-07-24 14:47:32 -04:00
parent 3e860c5f29
commit 9696ddf993
4 changed files with 31 additions and 2 deletions

View File

@@ -414,6 +414,22 @@ public class EventType{
}
}
/**
* Called when a tile changes its overlay. Do not cache or use with a timer.
* Do not modify any tiles inside listener code.
* */
public static class TileOverlayChangeEvent{
public Tile tile;
public Floor previous, overlay;
public TileOverlayChangeEvent set(Tile tile, Floor previous, Floor overlay){
this.tile = tile;
this.previous = previous;
this.overlay = overlay;
return this;
}
}
/**
* Called after a building's team changes.
* Event object is reused, do not nest!