{"version":3,"file":"manager-B3wizUxc.mjs","names":[],"sources":["../src/manager/createManager.ts"],"sourcesContent":["import { createManagerFactory } from \"@hellacardgames/lib\";\nimport {\n  createGame,\n  drawCard,\n  getClientStateAndClearEvents,\n  getEventsAndClearAcknowledged,\n  joinGame,\n  leaveGame,\n  MAX_PLAYERS,\n  playCard,\n  playWildCard,\n  sendChat,\n  startGame,\n} from \"../game/index.js\";\n\nexport type Manager = ReturnType<typeof createManager>;\n\nexport const createManager = createManagerFactory({\n  maxPlayers: MAX_PLAYERS,\n  createGame,\n  getClientStateAndClearEvents,\n  getEventsAndClearAcknowledged,\n  joinGame,\n  leaveGame,\n  sendChat,\n  startGame,\n  gameplayActions: {\n    drawCard,\n    playCard,\n    playWildCard,\n  },\n});\n"],"mappings":";;;AAiBA,MAAa,gBAAgB,qBAAqB;CAChD,YAAA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,iBAAiB;EACf;EACA;EACA;CACF;AACF,CAAC"}