update unitlayer to use new api

This commit is contained in:
Evan
2025-02-01 12:05:11 -08:00
parent e467ab800f
commit e395619abc
4 changed files with 79 additions and 79 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ export class GameRunner {
this.callBack({
tick: this.game.ticks(),
units: this.game.units().map(u => u.toUpdate()),
units: updates.filter(u => u.type == GameUpdateType.Unit),
packedTileUpdates: updates.filter(u => u.type == GameUpdateType.Tile).map(u => packTileData(u)),
players: playerViewData
})