Skip to content

Instantly share code, notes, and snippets.

@its-jackson
Created August 13, 2023 02:56
Show Gist options
  • Save its-jackson/bd45f9630a6166346371de8b63bceda9 to your computer and use it in GitHub Desktop.
Save its-jackson/bd45f9630a6166346371de8b63bceda9 to your computer and use it in GitHub Desktop.
package scripts.kotlin.api.framework.routine.api.interfaces
import scripts.kotlin.api.framework.routine.api.Consumable
import scripts.kotlin.api.framework.routine.api.Logger
interface ConsumableManager {
val logger: Logger
fun consume(consumable: Consumable): Boolean
fun checkAll(): Consumable?
fun drink(consumable: Consumable): Boolean {
return consumable.getWithLeastDoses()?.click("Drink") ?: false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment