Heimdall: Keep track of block data.

This commit is contained in:
2023-02-07 20:36:30 -05:00
parent 760b77364a
commit 688106a6e6
13 changed files with 46 additions and 45 deletions

View File

@ -4,5 +4,6 @@ import kotlinx.serialization.Serializable
@Serializable
data class ExportedBlock(
val type: String
val type: String,
val data: String? = null
)

View File

@ -2,4 +2,5 @@ package gay.pizza.foundation.heimdall.table
object BlockBreakTable : PlayerTimedLocalEventTable("block_breaks") {
val block = text("block")
val blockData = text("block_data").nullable()
}

View File

@ -2,4 +2,5 @@ package gay.pizza.foundation.heimdall.table
object BlockPlaceTable : PlayerTimedLocalEventTable("block_places") {
val block = text("block")
val blockData = text("block_data").nullable()
}

View File

@ -5,4 +5,5 @@ import gay.pizza.foundation.heimdall.table.PlayerTimedLocalEventTable
object BlockChangeView : PlayerTimedLocalEventTable("block_changes") {
val isBreak = bool("break")
val block = text("block")
val blockData = text("block_data").nullable()
}