Created
August 13, 2023 02:56
-
-
Save its-jackson/bd45f9630a6166346371de8b63bceda9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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