level-up/src/shared/gameEvents.ts
2024-12-27 18:10:40 +01:00

7 lines
No EOL
342 B
TypeScript

import type { InteractionQueueItem } from "./script/types"
export type GameEvent =
| { type: "room-changed"; roomId: string }
| { type: "interaction-queued"; item: InteractionQueueItem }
| { type: "interaction-votes-changed"; id: string; votes: number }
| { type: "object-visibility-changed"; id: string; isVisible: boolean }