mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 21:14:04 +09:00
#12 event for world block change -- mainly meant for fixture updating itself
This commit is contained in:
@@ -405,6 +405,8 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
itemOnGrip?.endSecondaryUse(delta)
|
||||
}
|
||||
|
||||
|
||||
|
||||
private var firstTimeRun = true
|
||||
|
||||
///////////////
|
||||
@@ -505,6 +507,12 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
CollisionSolver.process()
|
||||
|
||||
WorldCamera.update(gameworld, actorNowPlaying)
|
||||
|
||||
|
||||
// completely consume block change queues because why not
|
||||
terrainChangeQueue.clear()
|
||||
wallChangeQueue.clear()
|
||||
wireChangeQueue.clear()
|
||||
}
|
||||
|
||||
|
||||
@@ -665,6 +673,12 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (it is CuedByTerrainChange) {
|
||||
terrainChangeQueue.forEach { cue ->
|
||||
it.updateForWorldChange(cue)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
actorNowPlaying?.update(delta)
|
||||
|
||||
Reference in New Issue
Block a user