- Remove default player objects - Remove Player interface - Make players store writable - Use PlayerData type from the common module - Add a gameCode store
8 lines
No EOL
318 B
TypeScript
8 lines
No EOL
318 B
TypeScript
import type { PlayerData } from "common";
|
|
import { writable } from "svelte/store";
|
|
|
|
export const gameCode = writable<string>();
|
|
export const state = writable<string>("main-menu");
|
|
export const myName = writable<string>();
|
|
export const isHost = writable<boolean>(false);
|
|
export const players = writable<PlayerData[]>(); |