use updates for serializing game updates

This commit is contained in:
Evan
2025-02-01 12:05:11 -08:00
parent 459fc50dae
commit 8c947a9fbf
12 changed files with 111 additions and 137 deletions
+2 -2
View File
@@ -416,8 +416,8 @@ export class GameImpl implements MutableGame {
return false
}
public fireUnitUpdateEvent(unit: Unit, oldTile: Tile) {
this.updates.push((unit as UnitImpl).toUpdate(oldTile))
public fireUnitUpdateEvent(unit: Unit) {
this.updates.push((unit as UnitImpl).toUpdate())
}
target(targeter: Player, target: Player) {