DefaultGameMessageCounter

class DefaultGameMessageCounter @JvmOverloads constructor(val clientEventLimit: Int = 50, val userEventLimit: Int = 10) : GameMessageCounter

A default game message counter that follows the normal OldSchool limitations, allowing for up to 10 user events and up to 50 client events, stopping decoding whenever either of the limitations is reached.

Constructors

Link copied to clipboard
constructor(clientEventLimit: Int = 50, userEventLimit: Int = 10)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun increment(clientProtCategory: ClientProtCategory)

Increments the message counter for the provided client prot category.

Link copied to clipboard
open override fun isFull(): Boolean

Whether any of the message categories have reached their limit for maximum number of decoded messages.

Link copied to clipboard
open override fun reset()

Resets the tracked counts for the messages.