1 package net.pterodactylus.rhynodge.mergers
3 import net.pterodactylus.rhynodge.Merger
4 import net.pterodactylus.rhynodge.State
7 * [Merger] implementation that always returns the current state.
9 class LastStateMerger : Merger {
11 override fun mergeStates(previousState: State, currentState: State) = AlwaysTriggeringState(currentState)
13 class AlwaysTriggeringState(state: State) : State by state {
14 override fun triggered() = true