Effect.kt
Branches > main > bda016e > files / src / main / kotlin / net / bowmap / stormbow / effect / Effect.kt
package net.bowmap.stormbow.effect
import kotlinx.collections.immutable.*
interface Effect {
fun execute()
}
fun execute(effects: PersistentList<Effect>) {
effects.forEach { effect ->
effect.execute()
}
}
fun effects(vararg e: Effect) = persistentListOf(*e)