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

godot.core.bridge.Callable.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("PackageDirectoryMismatch")
package godot.core

import godot.Object

interface Callable: CoreType {
    fun call(vararg args: Any?): Any?

    companion object {
        operator fun invoke() = NativeCallable()
        operator fun invoke(target: Object, methodName: StringName) = NativeCallable(target, methodName)
        operator fun invoke(nativeCallable: NativeCallable) = NativeCallable(nativeCallable)
        operator fun invoke(ktCallable: KtCallable<*>) = NativeCallable(ktCallable)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy