mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Implement game layer from protobuf to redux
This commit is contained in:
parent
d96d5e1589
commit
74803442d2
82 changed files with 2455 additions and 88 deletions
6
webclient/src/websocket/events/game/setCardCounter.ts
Normal file
6
webclient/src/websocket/events/game/setCardCounter.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { GameEventMeta, SetCardCounterData } from 'types';
|
||||
import { GamePersistence } from '../../persistence';
|
||||
|
||||
export function setCardCounter(data: SetCardCounterData, meta: GameEventMeta): void {
|
||||
GamePersistence.cardCounterChanged(meta.gameId, meta.playerId, data);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue