All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.pouvoir.internal.feature.trigger.custom.CustomTrigger.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.internal.feature.trigger.custom

import com.skillw.pouvoir.api.feature.trigger.BaseTrigger
import com.skillw.pouvoir.api.plugin.map.DataMap

/**
 * @className CustomTrigger
 *
 * @author Glom
 * @date 2023/1/8 19:36 Copyright 2024 Glom.
 */
class CustomTrigger(key: String) : BaseTrigger(key) {
    val data = DataMap()

    constructor(key: String, data: Map = emptyMap()) : this(key) {
        this.data.putAll(data)
    }

    constructor(key: String, receiver: DataMap.() -> Unit) : this(key) {
        receiver(data)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy