refactor: remove registry from Boop and Regicide index files
This commit is contained in:
parent
2014162819
commit
f5df1c26dc
|
|
@ -1,49 +1,41 @@
|
||||||
// Types
|
// Types
|
||||||
export type {
|
export type {
|
||||||
PlayerType,
|
PlayerType,
|
||||||
PieceType,
|
PieceType,
|
||||||
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 {
|
||||||
getLineCandidates,
|
getLineCandidates,
|
||||||
isInBounds,
|
isInBounds,
|
||||||
isCellOccupied,
|
isCellOccupied,
|
||||||
getNeighborPositions,
|
getNeighborPositions,
|
||||||
findPartInRegion,
|
findPartInRegion,
|
||||||
findPartAtPosition
|
findPartAtPosition,
|
||||||
} from './utils';
|
} from "./utils";
|
||||||
|
|
|
||||||
|
|
@ -1,67 +1,63 @@
|
||||||
// Types
|
// Types
|
||||||
export type {
|
export type {
|
||||||
SuitType,
|
SuitType,
|
||||||
CardRank,
|
CardRank,
|
||||||
PlayerType,
|
PlayerType,
|
||||||
RegionType,
|
RegionType,
|
||||||
RegicideCardMeta,
|
RegicideCardMeta,
|
||||||
RegicideCard,
|
RegicideCard,
|
||||||
Enemy,
|
Enemy,
|
||||||
GamePhase
|
GamePhase,
|
||||||
} from './types';
|
} from "./types";
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
export {
|
export {
|
||||||
ENEMY_COUNT,
|
ENEMY_COUNT,
|
||||||
INITIAL_HAND_SIZE,
|
INITIAL_HAND_SIZE,
|
||||||
CARD_VALUES,
|
CARD_VALUES,
|
||||||
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,
|
enemyCounterattack as enemyCounterattackCmd,
|
||||||
enemyCounterattack as enemyCounterattackCmd,
|
checkEnemy as checkEnemyCmd,
|
||||||
checkEnemy as checkEnemyCmd,
|
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 {
|
||||||
setupGame,
|
setupGame,
|
||||||
start,
|
start,
|
||||||
playTurn,
|
playTurn,
|
||||||
handleCounterattack,
|
handleCounterattack,
|
||||||
getGameStatus,
|
getGameStatus,
|
||||||
type RegicideGame
|
type RegicideGame,
|
||||||
} from './game';
|
} from "./game";
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
export {
|
export {
|
||||||
getCardValue,
|
getCardValue,
|
||||||
createCard,
|
createCard,
|
||||||
createEnemy,
|
createEnemy,
|
||||||
createAllCards,
|
createAllCards,
|
||||||
buildEnemyDeck,
|
buildEnemyDeck,
|
||||||
buildTavernDeck,
|
buildTavernDeck,
|
||||||
drawFromDeck,
|
drawFromDeck,
|
||||||
isEnemyDefeated,
|
isEnemyDefeated,
|
||||||
getPlayerHandRegionId
|
getPlayerHandRegionId,
|
||||||
} from './utils';
|
} from "./utils";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue