MidiJingle

class MidiJingle : OutgoingGameMessage

Midi jingle packet is used to play a short midi song, typically when the player accomplishes something. The normal song that was playing will be resumed after the jingle finishes playing. In the old days, the lengthInMillis property was used to tell the client how long the jingle lasts, so it knows when to resume the normal midi song. It has long since been removed, however - while the client expects a 24-bit integer for the length, it does not use this value in any way.

Constructors

Link copied to clipboard
constructor(id: Int)
constructor(id: Int, lengthInMillis: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard
val id: Int

the id of the jingle to play

Link copied to clipboard

the length in milliseconds of the jingle, now unused.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String