- type: entity
  parent: BaseBoardEntity
  id: ChessBoard
  name: chessboard
  description: A chessboard. Pieces included!
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chessboard.rsi
    state: chessboard
  - type: TabletopGame
    boardName: tabletop-chess-board-name
    size: 338, 274
    setup:
      !type:TabletopChessSetup
      boardPrototype: &ChessBoard ChessBoardTabletop

- type: entity
  parent: BaseBoardTabletop
  id: *ChessBoard
  name: chessboard
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chessboard_tabletop.rsi
    state: chessboard_tabletop

# White pieces
- type: entity
  parent: BaseTabletopPiece
  id: WhiteKing
  name: white king
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: w_king

- type: entity
  parent: BaseTabletopPiece
  id: WhiteQueen
  name: white queen
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: w_queen

- type: entity
  parent: BaseTabletopPiece
  id: WhiteRook
  name: white rook
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: w_rook

- type: entity
  parent: BaseTabletopPiece
  id: WhiteBishop
  name: white bishop
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: w_bishop

- type: entity
  parent: BaseTabletopPiece
  id: WhiteKnight
  name: white knight
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: w_knight

- type: entity
  parent: BaseTabletopPiece
  id: WhitePawn
  name: white pawn
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: w_pawn

# Black pieces
- type: entity
  parent: BaseTabletopPiece
  id: BlackKing
  name: black king
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: b_king

- type: entity
  parent: BaseTabletopPiece
  id: BlackQueen
  name: black queen
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: b_queen

- type: entity
  parent: BaseTabletopPiece
  id: BlackRook
  name: black rook
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: b_rook

- type: entity
  parent: BaseTabletopPiece
  id: BlackBishop
  name: black bishop
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: b_bishop

- type: entity
  parent: BaseTabletopPiece
  id: BlackKnight
  name: black knight
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: b_knight

- type: entity
  parent: BaseTabletopPiece
  id: BlackPawn
  name: black pawn
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chess_pieces.rsi
    state: b_pawn
