Allow spawnpoint edits in-game (closes Anuken/Mindustry-Suggestions/issues/5754)
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user