refactor: remove registry from Boop and Regicide index files
This commit is contained in:
parent
2014162819
commit
f5df1c26dc
|
|
@ -5,38 +5,30 @@ export type {
|
||||||
WinnerType,
|
WinnerType,
|
||||||
RegionType,
|
RegionType,
|
||||||
BoopPartMeta,
|
BoopPartMeta,
|
||||||
BoopPart
|
BoopPart,
|
||||||
} from './types';
|
} from "./types";
|
||||||
|
|
||||||
export type {BoopGame} from './types-extensions';
|
export type { BoopGame } from "./types-extensions";
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
export {
|
export { BOARD_SIZE, MAX_PIECES_PER_PLAYER, WIN_LENGTH } from "./constants";
|
||||||
BOARD_SIZE,
|
|
||||||
MAX_PIECES_PER_PLAYER,
|
|
||||||
WIN_LENGTH
|
|
||||||
} from './constants';
|
|
||||||
|
|
||||||
// State
|
// State
|
||||||
export {
|
export { createInitialState, type BoopState } from "./state";
|
||||||
createInitialState,
|
|
||||||
type BoopState
|
|
||||||
} from './state';
|
|
||||||
|
|
||||||
// Prompts
|
// Prompts
|
||||||
export {prompts} from './prompts';
|
export { prompts } from "./prompts";
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
export {
|
export {
|
||||||
registry,
|
|
||||||
start,
|
start,
|
||||||
place as placeCmd,
|
place as placeCmd,
|
||||||
boop as boopCmd,
|
boop as boopCmd,
|
||||||
checkWin as checkWinCmd,
|
checkWin as checkWinCmd,
|
||||||
checkGraduates as checkGraduatesCmd,
|
checkGraduates as checkGraduatesCmd,
|
||||||
checkFullBoard as checkFullBoardCmd,
|
checkFullBoard as checkFullBoardCmd,
|
||||||
turn as turnCmd
|
turn as turnCmd,
|
||||||
} from './commands';
|
} from "./commands";
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
export {
|
export {
|
||||||
|
|
@ -45,5 +37,5 @@ export {
|
||||||
isCellOccupied,
|
isCellOccupied,
|
||||||
getNeighborPositions,
|
getNeighborPositions,
|
||||||
findPartInRegion,
|
findPartInRegion,
|
||||||
findPartAtPosition
|
findPartAtPosition,
|
||||||
} from './utils';
|
} from "./utils";
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ export type {
|
||||||
RegicideCardMeta,
|
RegicideCardMeta,
|
||||||
RegicideCard,
|
RegicideCard,
|
||||||
Enemy,
|
Enemy,
|
||||||
GamePhase
|
GamePhase,
|
||||||
} from './types';
|
} from "./types";
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
export {
|
export {
|
||||||
|
|
@ -18,21 +18,17 @@ export {
|
||||||
ALL_SUITS,
|
ALL_SUITS,
|
||||||
ALL_RANKS,
|
ALL_RANKS,
|
||||||
FACE_CARDS,
|
FACE_CARDS,
|
||||||
NUMBER_CARDS
|
NUMBER_CARDS,
|
||||||
} from './constants';
|
} from "./constants";
|
||||||
|
|
||||||
// State
|
// State
|
||||||
export {
|
export { createInitialState, type RegicideState } from "./state";
|
||||||
createInitialState,
|
|
||||||
type RegicideState
|
|
||||||
} from './state';
|
|
||||||
|
|
||||||
// Prompts
|
// Prompts
|
||||||
export {prompts} from './prompts';
|
export { prompts } from "./prompts";
|
||||||
|
|
||||||
// Commands
|
// Commands
|
||||||
export {
|
export {
|
||||||
registry,
|
|
||||||
play as playCmd,
|
play as playCmd,
|
||||||
playWithA as playWithACmd,
|
playWithA as playWithACmd,
|
||||||
pass as passCmd,
|
pass as passCmd,
|
||||||
|
|
@ -41,7 +37,7 @@ export {
|
||||||
checkCanPlay as checkCanPlayCmd,
|
checkCanPlay as checkCanPlayCmd,
|
||||||
checkTavernDeck as checkTavernDeckCmd,
|
checkTavernDeck as checkTavernDeckCmd,
|
||||||
nextTurn as nextTurnCmd,
|
nextTurn as nextTurnCmd,
|
||||||
} from './commands';
|
} from "./commands";
|
||||||
|
|
||||||
// Game
|
// Game
|
||||||
export {
|
export {
|
||||||
|
|
@ -50,8 +46,8 @@ export {
|
||||||
playTurn,
|
playTurn,
|
||||||
handleCounterattack,
|
handleCounterattack,
|
||||||
getGameStatus,
|
getGameStatus,
|
||||||
type RegicideGame
|
type RegicideGame,
|
||||||
} from './game';
|
} from "./game";
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
export {
|
export {
|
||||||
|
|
@ -63,5 +59,5 @@ export {
|
||||||
buildTavernDeck,
|
buildTavernDeck,
|
||||||
drawFromDeck,
|
drawFromDeck,
|
||||||
isEnemyDefeated,
|
isEnemyDefeated,
|
||||||
getPlayerHandRegionId
|
getPlayerHandRegionId,
|
||||||
} from './utils';
|
} from "./utils";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue