# SPDX-FileCopyrightText: 2021 Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 metalgearsloth <comedian_vs_clown@hotmail.com>
# SPDX-FileCopyrightText: 2022 Vera Aguilera Puerto <gradientvera@outlook.com>
# SPDX-FileCopyrightText: 2023 TemporalOroboros <TemporalOroboros@gmail.com>
# SPDX-FileCopyrightText: 2023 Visne <39844191+Visne@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 eclips_e <67359748+Just-a-Unity-Dev@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 lzk <124214523+lzk228@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Plykiya <58439124+Plykiya@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 plykiya <plykiya@protonmail.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# Chessboard item (normal in game item you can hold in your hand)
- 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: ChessBoardTabletop

# Chessboard tabletop item (item only visible in tabletop game)
- type: entity
  id: ChessBoardTabletop
  name: chessboard
  parent: BaseBoardTabletop
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: Objects/Fun/Tabletop/chessboard_tabletop.rsi
    state: chessboard_tabletop

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

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

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

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

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

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

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

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

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

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

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

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