Game

@Serializable
data class Game(val title: String, val description: String, val photo: Photo, val text: String? = null, val textSources: TextSourcesList = emptyList(), val animation: AnimationFile? = null) : Titled, TextedInput

Constructors

Link copied to clipboard
fun Game(title: String, description: String, photo: Photo, text: String? = null, textSources: TextSourcesList = emptyList(), animation: AnimationFile? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val text: String? = null
Link copied to clipboard
open override val textSources: TextSourcesList

Full list of TextSources

Link copied to clipboard
open override val title: String

Extensions

Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): Map<String, Array<String>>

Parse commands and their args. Logic will find command, get all subsequent data as args until new command