UnlockCondition

sealed interface UnlockCondition

Represents a condition that must be met for a tool to be unlocked.

Inheritors

Types

Link copied to clipboard
data class AfterTools(val prerequisites: List<String>) : UnlockCondition

Tool unlocks after specified prerequisite tools have been called.

Link copied to clipboard
data class AllOf(val conditions: List<UnlockCondition>) : UnlockCondition

Tool unlocks when all conditions are met.

Link copied to clipboard
data class AnyOf(val conditions: List<UnlockCondition>) : UnlockCondition

Tool unlocks when any condition is met.

Link copied to clipboard
object Companion
Link copied to clipboard
data class OnArtifact(val artifactType: Class<*>) : UnlockCondition

Tool unlocks when an artifact of the specified type has been produced.

Link copied to clipboard
data class WhenPredicate(val predicate: (PlaybookContext) -> Boolean) : UnlockCondition

Tool unlocks when a custom predicate returns true.

Functions

Link copied to clipboard
abstract fun isSatisfied(context: PlaybookContext): Boolean

Evaluate whether this condition is met given the current context.