TiledFloor and TiledWall implementation classes

This commit is contained in:
Anuken
2025-12-30 19:19:23 -05:00
parent 4d57e9fbdb
commit 8db5ec0247
7 changed files with 287 additions and 7 deletions

View File

@@ -36,6 +36,8 @@ public class EditorTile extends Tile{
op(DrawOperation.opFloor, floor.id);
world.floorChanges ++;
this.floor = type;
type.floorChanged(this);
}
@@ -85,6 +87,10 @@ public class EditorTile extends Tile{
if(build != null){
build.wasVisible = true;
}
world.tileChanges ++;
type.blockChanged(this);
}
@Override
@@ -112,6 +118,10 @@ public class EditorTile extends Tile{
if(this.overlay == overlay) return;
op(DrawOperation.opOverlay, this.overlay.id);
super.setOverlay(overlay);
world.floorChanges ++;
((Floor)overlay).floorChanged(this);
}
@Override