mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-29 18:39:13 +00:00
update unitlayer to use new api
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user