feat: recommend card investments for board connections
Publish GitHub Pages output / publish (push) Successful in 35s
Publish GitHub Pages output / publish (push) Successful in 35s
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// <reference lib="webworker" />
|
||||
import cards from '../data/cards-summary.json';
|
||||
import boards from '../data/boards-summary.json';
|
||||
import memory from '../data/memory-summary.json';
|
||||
import { recommendBoardAwakening, type BoardAwakeningRequest } from '../engine/board-awakening.ts';
|
||||
self.onmessage = (event: MessageEvent<BoardAwakeningRequest>) => {
|
||||
try {
|
||||
const result = recommendBoardAwakening({ cards: cards.cards, boards, memoryEffects: memory.effects }, event.data,
|
||||
(progress) => self.postMessage({ type: 'progress', progress }));
|
||||
self.postMessage({ type: 'result', result });
|
||||
} catch (error) { self.postMessage({ type: 'error', message: error instanceof Error ? error.message : '연결노드용 개화 추천에 실패했습니다.' }); }
|
||||
};
|
||||
export {};
|
||||
Reference in New Issue
Block a user