NameProtectMappings

Keeps track of the current name protect mappings and contains functions for replacement.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class ColoringInfo(val username: ColorGetter, val friends: ColorGetter, val otherPlayers: ColorGetter)
Link copied to clipboard
class MappingData(val newName: String, val colorGetter: ColorGetter)

Functions

Link copied to clipboard

Returns a list of all emits, sorted by their start

Link copied to clipboard

Memoized variant of findReplacements, which must only be called from the thread that calls update because ReplacementInstructions.matchCached is not thread-safe.

Link copied to clipboard
fun update(username: Pair<String, String>, friendMappings: List<Pair<String, String>>, otherPlayers: List<String>, coloringInfo: NameProtectMappings.ColoringInfo)