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

com.skillw.pouvoir.api.feature.operation.Operation.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.api.feature.operation

import com.skillw.pouvoir.Pouvoir
import com.skillw.pouvoir.api.plugin.map.component.Registrable

/**
 * @className NumberOperation
 *
 * @author Glom
 * @date 2022/7/19 12:38 Copyright 2022 user.
 */
interface Operation : Registrable {
    /** 是否在重载时删除 */
    var release: Boolean

    /**
     * 做运算
     *
     * @param a 对象a
     * @param b 对象b
     * @return 运算结果
     */
    fun operate(a: T, b: T): T
    override fun register() {
        Pouvoir.operationManager.register(this)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy