mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
7 lines
328 B
TypeScript
7 lines
328 B
TypeScript
import type { Event_CreateToken } from 'generated/proto/event_create_token_pb';
|
|
import type { GameEventMeta } from 'types';
|
|
import { GamePersistence } from '../../persistence';
|
|
|
|
export function createToken(data: Event_CreateToken, meta: GameEventMeta): void {
|
|
GamePersistence.tokenCreated(meta.gameId, meta.playerId, data);
|
|
}
|