godot.core.bridge.Callable.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of godot-library-debug Show documentation
Show all versions of godot-library-debug Show documentation
Contains godot api as kotlin classes and jvm cpp interaction code.
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)
}
}