TTac
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
TTac
TTac
/
io.gh.kdbrian.ttac.game
/
BlocksSnapshot
Blocks
Snapshot
@
Serializable
data
class
BlocksSnapshot
(
val
difficulty
:
BlocksDifficulty
,
val
grid
:
List
<
Int
>
,
val
piece
:
Tetromino
,
val
rot
:
Int
,
val
px
:
Int
,
val
py
:
Int
,
val
bag
:
List
<
Tetromino
>
,
val
score
:
Int
,
val
lines
:
Int
,
val
won
:
Boolean
)
Members
Constructors
Blocks
Snapshot
Link copied to clipboard
constructor
(
difficulty
:
BlocksDifficulty
,
grid
:
List
<
Int
>
,
piece
:
Tetromino
,
rot
:
Int
,
px
:
Int
,
py
:
Int
,
bag
:
List
<
Tetromino
>
,
score
:
Int
,
lines
:
Int
,
won
:
Boolean
)
Properties
bag
Link copied to clipboard
val
bag
:
List
<
Tetromino
>
difficulty
Link copied to clipboard
val
difficulty
:
BlocksDifficulty
grid
Link copied to clipboard
val
grid
:
List
<
Int
>
lines
Link copied to clipboard
val
lines
:
Int
piece
Link copied to clipboard
val
piece
:
Tetromino
px
Link copied to clipboard
val
px
:
Int
py
Link copied to clipboard
val
py
:
Int
rot
Link copied to clipboard
val
rot
:
Int
score
Link copied to clipboard
val
score
:
Int
won
Link copied to clipboard
val
won
:
Boolean