Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Last active August 5, 2021 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsoltk/f044bb352b61ba48f0f6c180000a6284 to your computer and use it in GitHub Desktop.
Save zsoltk/f044bb352b61ba48f0f6c180000a6284 to your computer and use it in GitHub Desktop.
data class SquareRenderProperties(
val position: Position,
val isHighlighted: Boolean,
val clickable: Boolean,
val onClick: () -> Unit,
val isPossibleMoveWithoutCapture: Boolean,
val isPossibleCapture: Boolean,
val boardProperties: BoardRenderProperties
)
data class BoardRenderProperties(
val fromState: GameSnapshotState,
val toState: GameSnapshotState,
val uiState: UiState,
val isFlipped: Boolean,
val squareSize: Dp,
val onClick: (Position) -> Unit,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment