0e68490e75
A great deal of the complexity of the current code is that we must chain 2 reactive values (one in the map "GameScene.MapPlayersByKey" and one in the snapshot store). The new generic MapStore class can be used to listen to stores inside a map. When the store inside the map, or the map itself is modified, the resulting store is updated.
7 lines
173 B
TypeScript
7 lines
173 B
TypeScript
import type { Readable } from "svelte/store";
|
|
|
|
/**
|
|
* A store that contains the player/companion avatar picture
|
|
*/
|
|
export type PictureStore = Readable<string | undefined>;
|