chunked world output/deploying custom format of TVD

This commit is contained in:
minjaesong
2021-09-11 02:19:10 +09:00
parent 36c413eb15
commit 83c3c22b51
26 changed files with 3036 additions and 68 deletions

View File

@@ -252,8 +252,10 @@ class GameWorld() : Disposable {
layerWall.unsafeSetTile(x, y, tilenum)
wallDamages.remove(LandUtil.getBlockAddr(this, x, y))
if (!bypassEvent)
if (!bypassEvent) {
Terrarum.ingame?.queueWallChangedEvent(oldWall, itemID, x, y)
Terrarum.ingame?.modified(LandUtil.LAYER_WALL, x, y)
}
}
/**
@@ -282,8 +284,10 @@ class GameWorld() : Disposable {
}
// fluid tiles-item should be modified so that they will also place fluid onto their respective map
if (!bypassEvent)
if (!bypassEvent) {
Terrarum.ingame?.queueTerrainChangedEvent(oldTerrain, itemID, x, y)
Terrarum.ingame?.modified(LandUtil.LAYER_TERR, x, y)
}
}
fun setTileWire(x: Int, y: Int, tile: ItemID, bypassEvent: Boolean) {
@@ -297,8 +301,10 @@ class GameWorld() : Disposable {
wirings[blockAddr]!!.ws.add(tile)
if (!bypassEvent)
if (!bypassEvent) {
Terrarum.ingame?.queueWireChangedEvent(tile, false, x, y)
Terrarum.ingame?.modified(LandUtil.LAYER_WIRE, x, y)
}
// figure out wiring graphs