You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
413 B
Kotlin
12 lines
413 B
Kotlin
package me.eater.hefbrug.dsl.context
|
|
|
|
import me.eater.hefbrug.definition.DefinitionKey
|
|
import me.eater.hefbrug.definition.DefinitionKeyAction
|
|
|
|
interface Emitter {
|
|
val notify: MutableSet<DefinitionKeyAction>
|
|
|
|
operator fun MutableSet<DefinitionKeyAction>.plusAssign(definitionKey: Array<out DefinitionKey>) {
|
|
this.addAll(definitionKey.map { DefinitionKeyAction(it.group, it.id, "default") })
|
|
}
|
|
} |