mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
Revert "Revert "add slot machine, but currently it is not working""
This reverts commit f317e144e6
.
This commit is contained in:
parent
8e1cafb1b6
commit
46fe16fd73
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
## 0.29.3
|
## 0.29.3
|
||||||
|
|
||||||
|
* `Core`:
|
||||||
|
* New dice type `SlotMachineDiceAnimationType`
|
||||||
|
|
||||||
## 0.29.2
|
## 0.29.2
|
||||||
|
|
||||||
* `Common`:
|
* `Common`:
|
||||||
|
@ -22,6 +22,10 @@ object BasketballDiceAnimationType : DiceAnimationType() {
|
|||||||
override val emoji: String = "\uD83C\uDFC0"
|
override val emoji: String = "\uD83C\uDFC0"
|
||||||
}
|
}
|
||||||
@Serializable(DiceAnimationTypeSerializer::class)
|
@Serializable(DiceAnimationTypeSerializer::class)
|
||||||
|
object SlotMachineDiceAnimationType : DiceAnimationType() {
|
||||||
|
override val emoji: String = "\uD83C\uDFB0"
|
||||||
|
}
|
||||||
|
@Serializable(DiceAnimationTypeSerializer::class)
|
||||||
data class CustomDiceAnimationType(
|
data class CustomDiceAnimationType(
|
||||||
override val emoji: String
|
override val emoji: String
|
||||||
) : DiceAnimationType()
|
) : DiceAnimationType()
|
||||||
@ -34,6 +38,7 @@ internal object DiceAnimationTypeSerializer : KSerializer<DiceAnimationType> {
|
|||||||
CubeDiceAnimationType.emoji -> CubeDiceAnimationType
|
CubeDiceAnimationType.emoji -> CubeDiceAnimationType
|
||||||
DartsDiceAnimationType.emoji -> DartsDiceAnimationType
|
DartsDiceAnimationType.emoji -> DartsDiceAnimationType
|
||||||
BasketballDiceAnimationType.emoji -> BasketballDiceAnimationType
|
BasketballDiceAnimationType.emoji -> BasketballDiceAnimationType
|
||||||
|
SlotMachineDiceAnimationType.emoji -> BasketballDiceAnimationType
|
||||||
else -> CustomDiceAnimationType(type)
|
else -> CustomDiceAnimationType(type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user