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
@@ -1,5 +1,5 @@
import { PlayerID, Tile } from "../game/Game";
import { GameUpdateViewData, PlayerActions, PlayerInteraction } from "../GameView";
import { PlayerActions, PlayerID, Tile } from "../game/Game";
import { GameUpdateViewData } from "../GameView";
import { GameConfig, GameID, Turn } from "../Schemas";
import { generateID } from "../Util";
import { WorkerMessage } from "./WorkerMessages";
+2 -2
View File
@@ -1,6 +1,6 @@
import { GameUpdateViewData, PlayerActions, PlayerInteraction } from "../GameView";
import { GameUpdateViewData } from "../GameView";
import { GameConfig, GameID, Turn } from "../Schemas";
import { PlayerID } from "../game/Game";
import { PlayerActions, PlayerID } from "../game/Game";
export type WorkerMessageType =
| 'init'