mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
refactor redux data model
This commit is contained in:
parent
ae1bc3da38
commit
0ff391491d
243 changed files with 5212 additions and 5963 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import type { Data, Enriched } from '@app/types';
|
||||
import { GamePersistence } from '../../persistence';
|
||||
import { WebClient } from '../../WebClient';
|
||||
|
||||
export function setCounter(data: Data.Event_SetCounter, meta: Enriched.GameEventMeta): void {
|
||||
GamePersistence.counterSet(meta.gameId, meta.playerId, data);
|
||||
WebClient.instance.response.game.counterSet(meta.gameId, meta.playerId, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue